• 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

66.67
/src/main/java/com/meterware/httpunit/dom/HTMLTableElementImpl.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.DOMException;
11
import org.w3c.dom.html.HTMLCollection;
12
import org.w3c.dom.html.HTMLElement;
13
import org.w3c.dom.html.HTMLTableCaptionElement;
14
import org.w3c.dom.html.HTMLTableElement;
15
import org.w3c.dom.html.HTMLTableSectionElement;
16

17
/**
18
 * The Class HTMLTableElementImpl.
19
 */
20
public class HTMLTableElementImpl extends HTMLElementImpl implements HTMLTableElement {
1✔
21

22
    /** The Constant serialVersionUID. */
23
    private static final long serialVersionUID = 1L;
24

25
    @Override
26
    ElementImpl create() {
27
        return new HTMLTableElementImpl();
1✔
28
    }
29

30
    /**
31
     * Gets the align.
32
     *
33
     * @return the align
34
     */
35
    @Override
36
    public String getAlign() {
37
        return getAttributeWithDefault("align", "center");
1✔
38
    }
39

40
    /**
41
     * Sets the align.
42
     *
43
     * @param align
44
     *            the new align
45
     */
46
    @Override
47
    public void setAlign(String align) {
48
        setAttribute("align", align);
1✔
49
    }
1✔
50

51
    /**
52
     * Gets the bg color.
53
     *
54
     * @return the bg color
55
     */
56
    @Override
57
    public String getBgColor() {
58
        return getAttributeWithNoDefault("bgColor");
1✔
59
    }
60

61
    /**
62
     * Sets the bg color.
63
     *
64
     * @param bgColor
65
     *            the new bg color
66
     */
67
    @Override
68
    public void setBgColor(String bgColor) {
69
        setAttribute("bgColor", bgColor);
1✔
70
    }
1✔
71

72
    /**
73
     * Gets the border.
74
     *
75
     * @return the border
76
     */
77
    @Override
78
    public String getBorder() {
79
        return getAttributeWithNoDefault("border");
1✔
80
    }
81

82
    /**
83
     * Sets the border.
84
     *
85
     * @param border
86
     *            the new border
87
     */
88
    @Override
89
    public void setBorder(String border) {
90
        setAttribute("border", border);
1✔
91
    }
1✔
92

93
    /**
94
     * Gets the cell padding.
95
     *
96
     * @return the cell padding
97
     */
98
    @Override
99
    public String getCellPadding() {
100
        return getAttributeWithNoDefault("cellpadding");
1✔
101
    }
102

103
    /**
104
     * Sets the cell padding.
105
     *
106
     * @param cellPadding
107
     *            the new cell padding
108
     */
109
    @Override
110
    public void setCellPadding(String cellPadding) {
111
        setAttribute("cellpadding", cellPadding);
1✔
112
    }
1✔
113

114
    /**
115
     * Gets the cell spacing.
116
     *
117
     * @return the cell spacing
118
     */
119
    @Override
120
    public String getCellSpacing() {
121
        return getAttributeWithNoDefault("cellspacing");
1✔
122
    }
123

124
    /**
125
     * Sets the cell spacing.
126
     *
127
     * @param cellSpacing
128
     *            the new cell spacing
129
     */
130
    @Override
131
    public void setCellSpacing(String cellSpacing) {
132
        setAttribute("cellspacing", cellSpacing);
1✔
133
    }
1✔
134

135
    /**
136
     * Gets the frame.
137
     *
138
     * @return the frame
139
     */
140
    @Override
141
    public String getFrame() {
142
        return getAttributeWithDefault("frame", "void");
1✔
143
    }
144

145
    /**
146
     * Sets the frame.
147
     *
148
     * @param frame
149
     *            the new frame
150
     */
151
    @Override
152
    public void setFrame(String frame) {
153
        setAttribute("frame", frame);
1✔
154
    }
1✔
155

156
    /**
157
     * Gets the rules.
158
     *
159
     * @return the rules
160
     */
161
    @Override
162
    public String getRules() {
163
        return getAttributeWithDefault("rules", "none");
1✔
164
    }
165

166
    /**
167
     * Sets the rules.
168
     *
169
     * @param rules
170
     *            the new rules
171
     */
172
    @Override
173
    public void setRules(String rules) {
174
        setAttribute("rules", rules);
1✔
175
    }
1✔
176

177
    /**
178
     * Gets the summary.
179
     *
180
     * @return the summary
181
     */
182
    @Override
183
    public String getSummary() {
184
        return getAttributeWithNoDefault("summary");
1✔
185
    }
186

187
    /**
188
     * Sets the summary.
189
     *
190
     * @param summary
191
     *            the new summary
192
     */
193
    @Override
194
    public void setSummary(String summary) {
195
        setAttribute("summary", summary);
1✔
196
    }
1✔
197

198
    /**
199
     * Gets the width.
200
     *
201
     * @return the width
202
     */
203
    @Override
204
    public String getWidth() {
205
        return getAttributeWithNoDefault("width");
1✔
206
    }
207

208
    /**
209
     * Sets the width.
210
     *
211
     * @param width
212
     *            the new width
213
     */
214
    @Override
215
    public void setWidth(String width) {
216
        setAttribute("width", width);
1✔
217
    }
1✔
218

219
    /**
220
     * Creates the caption.
221
     *
222
     * @return the HTML element
223
     */
224
    @Override
225
    public HTMLElement createCaption() {
226
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
227
    }
228

229
    /**
230
     * Creates the T foot.
231
     *
232
     * @return the HTML element
233
     */
234
    @Override
235
    public HTMLElement createTFoot() {
236
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
237
    }
238

239
    /**
240
     * Creates the T head.
241
     *
242
     * @return the HTML element
243
     */
244
    @Override
245
    public HTMLElement createTHead() {
246
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
247
    }
248

249
    /**
250
     * Delete caption.
251
     */
252
    @Override
253
    public void deleteCaption() {
254
        // To change body of implemented methods use File | Settings | File Templates.
255
    }
×
256

257
    /**
258
     * Delete row.
259
     *
260
     * @param index
261
     *            the index
262
     *
263
     * @throws DOMException
264
     *             the DOM exception
265
     */
266
    @Override
267
    public void deleteRow(int index) throws DOMException {
268
        // To change body of implemented methods use File | Settings | File Templates.
269
    }
×
270

271
    /**
272
     * Delete T foot.
273
     */
274
    @Override
275
    public void deleteTFoot() {
276
        // To change body of implemented methods use File | Settings | File Templates.
277
    }
×
278

279
    /**
280
     * Delete T head.
281
     */
282
    @Override
283
    public void deleteTHead() {
284
        // To change body of implemented methods use File | Settings | File Templates.
285
    }
×
286

287
    /**
288
     * Gets the caption.
289
     *
290
     * @return the caption
291
     */
292
    @Override
293
    public HTMLTableCaptionElement getCaption() {
294
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
295
    }
296

297
    /**
298
     * Gets the rows.
299
     *
300
     * @return the rows
301
     */
302
    @Override
303
    public HTMLCollection getRows() {
304
        return HTMLCollectionImpl.createHTMLCollectionImpl(getElementsByTagName("tr"));
1✔
305
    }
306

307
    /**
308
     * Gets the t bodies.
309
     *
310
     * @return the t bodies
311
     */
312
    @Override
313
    public HTMLCollection getTBodies() {
314
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
315
    }
316

317
    /**
318
     * Gets the t foot.
319
     *
320
     * @return the t foot
321
     */
322
    @Override
323
    public HTMLTableSectionElement getTFoot() {
324
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
325
    }
326

327
    /**
328
     * Gets the t head.
329
     *
330
     * @return the t head
331
     */
332
    @Override
333
    public HTMLTableSectionElement getTHead() {
334
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
335
    }
336

337
    /**
338
     * Insert row.
339
     *
340
     * @param index
341
     *            the index
342
     *
343
     * @return the HTML element
344
     *
345
     * @throws DOMException
346
     *             the DOM exception
347
     */
348
    @Override
349
    public HTMLElement insertRow(int index) throws DOMException {
350
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
351
    }
352

353
    /**
354
     * Sets the caption.
355
     *
356
     * @param caption
357
     *            the new caption
358
     */
359
    @Override
360
    public void setCaption(HTMLTableCaptionElement caption) {
361
        // To change body of implemented methods use File | Settings | File Templates.
362
    }
×
363

364
    /**
365
     * Sets the t foot.
366
     *
367
     * @param tFoot
368
     *            the new t foot
369
     */
370
    @Override
371
    public void setTFoot(HTMLTableSectionElement tFoot) {
372
        // To change body of implemented methods use File | Settings | File Templates.
373
    }
×
374

375
    /**
376
     * Sets the t head.
377
     *
378
     * @param tHead
379
     *            the new t head
380
     */
381
    @Override
382
    public void setTHead(HTMLTableSectionElement tHead) {
383
        // To change body of implemented methods use File | Settings | File Templates.
384
    }
×
385
}
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