• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / httpunit / 755

14 Feb 2026 07:14PM UTC coverage: 80.526%. Remained the same
755

push

github

hazendaz
[ci] Fix badge

3213 of 4105 branches covered (78.27%)

Branch coverage included in aggregate %.

8245 of 10124 relevant lines covered (81.44%)

0.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/src/main/java/com/meterware/httpunit/dom/HTMLTableCellElementImpl.java
1
/*
2
 * SPDX-License-Identifier: MIT
3
 * See LICENSE file for details.
4
 *
5
 * Copyright 2000-2026 Russell Gold
6
 * Copyright 2021-2000 hazendaz
7
 */
8
package com.meterware.httpunit.dom;
9

10
import org.w3c.dom.html.HTMLCollection;
11
import org.w3c.dom.html.HTMLTableCellElement;
12

13
/**
14
 * The Class HTMLTableCellElementImpl.
15
 */
16
public class HTMLTableCellElementImpl extends HTMLElementImpl
1✔
17
        implements HTMLTableCellElement, HTMLContainerElement, AttributeNameAdjusted {
18

19
    /** The Constant serialVersionUID. */
20
    private static final long serialVersionUID = 1L;
21

22
    @Override
23
    ElementImpl create() {
24
        return new HTMLTableCellElementImpl();
1✔
25
    }
26

27
    // ------------------------------------------ HTMLContainerElement methods
28
    // ----------------------------------------------
29

30
    @Override
31
    public HTMLCollection getLinks() {
32
        return getHtmlDocument().getContainerDelegate().getLinks(this);
1✔
33
    }
34

35
    @Override
36
    public HTMLCollection getImages() {
37
        return getHtmlDocument().getContainerDelegate().getImages(this);
×
38
    }
39

40
    @Override
41
    public HTMLCollection getApplets() {
42
        return getHtmlDocument().getContainerDelegate().getApplets(this);
×
43
    }
44

45
    @Override
46
    public HTMLCollection getForms() {
47
        return getHtmlDocument().getContainerDelegate().getForms(this);
×
48
    }
49

50
    @Override
51
    public HTMLCollection getAnchors() {
52
        return getHtmlDocument().getContainerDelegate().getAnchors(this);
×
53
    }
54

55
    // -------------------------------------------- HTMLTableCellElement methods
56
    // --------------------------------------------
57

58
    /**
59
     * Gets the abbr.
60
     *
61
     * @return the abbr
62
     */
63
    @Override
64
    public String getAbbr() {
65
        return getAttributeWithNoDefault("abbr");
1✔
66
    }
67

68
    /**
69
     * Sets the abbr.
70
     *
71
     * @param abbr
72
     *            the new abbr
73
     */
74
    @Override
75
    public void setAbbr(String abbr) {
76
        setAttribute("abbr", abbr);
1✔
77
    }
1✔
78

79
    /**
80
     * Gets the align.
81
     *
82
     * @return the align
83
     */
84
    @Override
85
    public String getAlign() {
86
        return getAttributeWithNoDefault("align");
1✔
87
    }
88

89
    /**
90
     * Sets the align.
91
     *
92
     * @param align
93
     *            the new align
94
     */
95
    @Override
96
    public void setAlign(String align) {
97
        setAttribute("align", align);
1✔
98
    }
1✔
99

100
    /**
101
     * Gets the axis.
102
     *
103
     * @return the axis
104
     */
105
    @Override
106
    public String getAxis() {
107
        return getAttributeWithNoDefault("axis");
1✔
108
    }
109

110
    /**
111
     * Sets the axis.
112
     *
113
     * @param axis
114
     *            the new axis
115
     */
116
    @Override
117
    public void setAxis(String axis) {
118
        setAttribute("axis", axis);
1✔
119
    }
1✔
120

121
    /**
122
     * Gets the bg color.
123
     *
124
     * @return the bg color
125
     */
126
    @Override
127
    public String getBgColor() {
128
        return getAttributeWithNoDefault("bgColor");
1✔
129
    }
130

131
    /**
132
     * Sets the bg color.
133
     *
134
     * @param bgColor
135
     *            the new bg color
136
     */
137
    @Override
138
    public void setBgColor(String bgColor) {
139
        setAttribute("bgColor", bgColor);
1✔
140
    }
1✔
141

142
    /**
143
     * Gets the cell index.
144
     *
145
     * @return the cell index
146
     */
147
    @Override
148
    public int getCellIndex() {
149
        return 0; // To change body of implemented methods use File | Settings | File Templates.
×
150
    }
151

152
    /**
153
     * Gets the ch.
154
     *
155
     * @return the ch
156
     */
157
    @Override
158
    public String getCh() {
159
        return getAttributeWithDefault("char", ".");
1✔
160
    }
161

162
    /**
163
     * Sets the ch.
164
     *
165
     * @param ch
166
     *            the new ch
167
     */
168
    @Override
169
    public void setCh(String ch) {
170
        setAttribute("char", ch);
1✔
171
    }
1✔
172

173
    /**
174
     * Gets the ch off.
175
     *
176
     * @return the ch off
177
     */
178
    @Override
179
    public String getChOff() {
180
        return getAttributeWithNoDefault("charoff");
1✔
181
    }
182

183
    /**
184
     * Sets the ch off.
185
     *
186
     * @param chOff
187
     *            the new ch off
188
     */
189
    @Override
190
    public void setChOff(String chOff) {
191
        setAttribute("charoff", chOff);
1✔
192
    }
1✔
193

194
    /**
195
     * Gets the col span.
196
     *
197
     * @return the col span
198
     */
199
    @Override
200
    public int getColSpan() {
201
        return getIntegerAttribute("colspan", 1);
1✔
202
    }
203

204
    /**
205
     * Sets the col span.
206
     *
207
     * @param colSpan
208
     *            the new col span
209
     */
210
    @Override
211
    public void setColSpan(int colSpan) {
212
        setAttribute("colspan", colSpan);
1✔
213
    }
1✔
214

215
    /**
216
     * Gets the headers.
217
     *
218
     * @return the headers
219
     */
220
    @Override
221
    public String getHeaders() {
222
        return getAttributeWithNoDefault("headers");
1✔
223
    }
224

225
    /**
226
     * Sets the headers.
227
     *
228
     * @param headers
229
     *            the new headers
230
     */
231
    @Override
232
    public void setHeaders(String headers) {
233
        setAttribute("headers", headers);
1✔
234
    }
1✔
235

236
    /**
237
     * Gets the height.
238
     *
239
     * @return the height
240
     */
241
    @Override
242
    public String getHeight() {
243
        return getAttributeWithNoDefault("height");
1✔
244
    }
245

246
    /**
247
     * Sets the height.
248
     *
249
     * @param height
250
     *            the new height
251
     */
252
    @Override
253
    public void setHeight(String height) {
254
        setAttribute("height", height);
1✔
255
    }
1✔
256

257
    /**
258
     * Gets the no wrap.
259
     *
260
     * @return the no wrap
261
     */
262
    @Override
263
    public boolean getNoWrap() {
264
        return getBooleanAttribute("nowrap");
1✔
265
    }
266

267
    /**
268
     * Sets the no wrap.
269
     *
270
     * @param noWrap
271
     *            the new no wrap
272
     */
273
    @Override
274
    public void setNoWrap(boolean noWrap) {
275
        setAttribute("nowrap", noWrap);
1✔
276
    }
1✔
277

278
    /**
279
     * Gets the row span.
280
     *
281
     * @return the row span
282
     */
283
    @Override
284
    public int getRowSpan() {
285
        return getIntegerAttribute("rowspan", 1);
1✔
286
    }
287

288
    /**
289
     * Sets the row span.
290
     *
291
     * @param rowSpan
292
     *            the new row span
293
     */
294
    @Override
295
    public void setRowSpan(int rowSpan) {
296
        setAttribute("rowspan", rowSpan);
1✔
297
    }
1✔
298

299
    /**
300
     * Gets the scope.
301
     *
302
     * @return the scope
303
     */
304
    @Override
305
    public String getScope() {
306
        return getAttributeWithNoDefault("scope");
1✔
307
    }
308

309
    /**
310
     * Sets the scope.
311
     *
312
     * @param scope
313
     *            the new scope
314
     */
315
    @Override
316
    public void setScope(String scope) {
317
        setAttribute("scope", scope);
1✔
318
    }
1✔
319

320
    /**
321
     * Gets the v align.
322
     *
323
     * @return the v align
324
     */
325
    @Override
326
    public String getVAlign() {
327
        return getAttributeWithDefault("valign", "middle");
1✔
328
    }
329

330
    /**
331
     * Sets the v align.
332
     *
333
     * @param vAlign
334
     *            the new v align
335
     */
336
    @Override
337
    public void setVAlign(String vAlign) {
338
        setAttribute("valign", vAlign);
1✔
339
    }
1✔
340

341
    /**
342
     * Gets the width.
343
     *
344
     * @return the width
345
     */
346
    @Override
347
    public String getWidth() {
348
        return getAttributeWithNoDefault("width");
1✔
349
    }
350

351
    /**
352
     * Sets the width.
353
     *
354
     * @param width
355
     *            the new width
356
     */
357
    @Override
358
    public void setWidth(String width) {
359
        setAttribute("width", width);
1✔
360
    }
1✔
361

362
    @Override
363
    public String getJavaAttributeName(String attributeName) {
364
        if (attributeName.equals("char")) {
1✔
365
            return "ch";
1✔
366
        }
367
        if (attributeName.equals("charoff")) {
1✔
368
            return "choff";
1✔
369
        }
370
        return attributeName;
1✔
371
    }
372

373
    /**
374
     * Sets the cell index.
375
     *
376
     * @param cellIndex
377
     *            the new cell index
378
     */
379
    public void setCellIndex(int cellIndex) {
380
        // TODO Auto-generated method stub
381

382
    }
×
383

384
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc