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

hazendaz / httpunit / 656

06 Dec 2025 09:11PM UTC coverage: 80.452% (+0.02%) from 80.435%
656

push

github

hazendaz
[maven-release-plugin] prepare for next development iteration

3213 of 4105 branches covered (78.27%)

Branch coverage included in aggregate %.

8245 of 10137 relevant lines covered (81.34%)

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
 * MIT License
3
 *
4
 * Copyright 2011-2025 Russell Gold
5
 *
6
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
7
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
8
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
9
 * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10
 *
11
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions
12
 * of the Software.
13
 *
14
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
15
 * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
17
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18
 * DEALINGS IN THE SOFTWARE.
19
 */
20
package com.meterware.httpunit.dom;
21

22
import org.w3c.dom.DOMException;
23
import org.w3c.dom.html.HTMLCollection;
24
import org.w3c.dom.html.HTMLElement;
25
import org.w3c.dom.html.HTMLTableCaptionElement;
26
import org.w3c.dom.html.HTMLTableElement;
27
import org.w3c.dom.html.HTMLTableSectionElement;
28

29
/**
30
 * The Class HTMLTableElementImpl.
31
 */
32
public class HTMLTableElementImpl extends HTMLElementImpl implements HTMLTableElement {
1✔
33

34
    /** The Constant serialVersionUID. */
35
    private static final long serialVersionUID = 1L;
36

37
    @Override
38
    ElementImpl create() {
39
        return new HTMLTableElementImpl();
1✔
40
    }
41

42
    /**
43
     * Gets the align.
44
     *
45
     * @return the align
46
     */
47
    @Override
48
    public String getAlign() {
49
        return getAttributeWithDefault("align", "center");
1✔
50
    }
51

52
    /**
53
     * Sets the align.
54
     *
55
     * @param align
56
     *            the new align
57
     */
58
    @Override
59
    public void setAlign(String align) {
60
        setAttribute("align", align);
1✔
61
    }
1✔
62

63
    /**
64
     * Gets the bg color.
65
     *
66
     * @return the bg color
67
     */
68
    @Override
69
    public String getBgColor() {
70
        return getAttributeWithNoDefault("bgColor");
1✔
71
    }
72

73
    /**
74
     * Sets the bg color.
75
     *
76
     * @param bgColor
77
     *            the new bg color
78
     */
79
    @Override
80
    public void setBgColor(String bgColor) {
81
        setAttribute("bgColor", bgColor);
1✔
82
    }
1✔
83

84
    /**
85
     * Gets the border.
86
     *
87
     * @return the border
88
     */
89
    @Override
90
    public String getBorder() {
91
        return getAttributeWithNoDefault("border");
1✔
92
    }
93

94
    /**
95
     * Sets the border.
96
     *
97
     * @param border
98
     *            the new border
99
     */
100
    @Override
101
    public void setBorder(String border) {
102
        setAttribute("border", border);
1✔
103
    }
1✔
104

105
    /**
106
     * Gets the cell padding.
107
     *
108
     * @return the cell padding
109
     */
110
    @Override
111
    public String getCellPadding() {
112
        return getAttributeWithNoDefault("cellpadding");
1✔
113
    }
114

115
    /**
116
     * Sets the cell padding.
117
     *
118
     * @param cellPadding
119
     *            the new cell padding
120
     */
121
    @Override
122
    public void setCellPadding(String cellPadding) {
123
        setAttribute("cellpadding", cellPadding);
1✔
124
    }
1✔
125

126
    /**
127
     * Gets the cell spacing.
128
     *
129
     * @return the cell spacing
130
     */
131
    @Override
132
    public String getCellSpacing() {
133
        return getAttributeWithNoDefault("cellspacing");
1✔
134
    }
135

136
    /**
137
     * Sets the cell spacing.
138
     *
139
     * @param cellSpacing
140
     *            the new cell spacing
141
     */
142
    @Override
143
    public void setCellSpacing(String cellSpacing) {
144
        setAttribute("cellspacing", cellSpacing);
1✔
145
    }
1✔
146

147
    /**
148
     * Gets the frame.
149
     *
150
     * @return the frame
151
     */
152
    @Override
153
    public String getFrame() {
154
        return getAttributeWithDefault("frame", "void");
1✔
155
    }
156

157
    /**
158
     * Sets the frame.
159
     *
160
     * @param frame
161
     *            the new frame
162
     */
163
    @Override
164
    public void setFrame(String frame) {
165
        setAttribute("frame", frame);
1✔
166
    }
1✔
167

168
    /**
169
     * Gets the rules.
170
     *
171
     * @return the rules
172
     */
173
    @Override
174
    public String getRules() {
175
        return getAttributeWithDefault("rules", "none");
1✔
176
    }
177

178
    /**
179
     * Sets the rules.
180
     *
181
     * @param rules
182
     *            the new rules
183
     */
184
    @Override
185
    public void setRules(String rules) {
186
        setAttribute("rules", rules);
1✔
187
    }
1✔
188

189
    /**
190
     * Gets the summary.
191
     *
192
     * @return the summary
193
     */
194
    @Override
195
    public String getSummary() {
196
        return getAttributeWithNoDefault("summary");
1✔
197
    }
198

199
    /**
200
     * Sets the summary.
201
     *
202
     * @param summary
203
     *            the new summary
204
     */
205
    @Override
206
    public void setSummary(String summary) {
207
        setAttribute("summary", summary);
1✔
208
    }
1✔
209

210
    /**
211
     * Gets the width.
212
     *
213
     * @return the width
214
     */
215
    @Override
216
    public String getWidth() {
217
        return getAttributeWithNoDefault("width");
1✔
218
    }
219

220
    /**
221
     * Sets the width.
222
     *
223
     * @param width
224
     *            the new width
225
     */
226
    @Override
227
    public void setWidth(String width) {
228
        setAttribute("width", width);
1✔
229
    }
1✔
230

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

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

251
    /**
252
     * Creates the T head.
253
     *
254
     * @return the HTML element
255
     */
256
    @Override
257
    public HTMLElement createTHead() {
258
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
259
    }
260

261
    /**
262
     * Delete caption.
263
     */
264
    @Override
265
    public void deleteCaption() {
266
        // To change body of implemented methods use File | Settings | File Templates.
267
    }
×
268

269
    /**
270
     * Delete row.
271
     *
272
     * @param index
273
     *            the index
274
     *
275
     * @throws DOMException
276
     *             the DOM exception
277
     */
278
    @Override
279
    public void deleteRow(int index) throws DOMException {
280
        // To change body of implemented methods use File | Settings | File Templates.
281
    }
×
282

283
    /**
284
     * Delete T foot.
285
     */
286
    @Override
287
    public void deleteTFoot() {
288
        // To change body of implemented methods use File | Settings | File Templates.
289
    }
×
290

291
    /**
292
     * Delete T head.
293
     */
294
    @Override
295
    public void deleteTHead() {
296
        // To change body of implemented methods use File | Settings | File Templates.
297
    }
×
298

299
    /**
300
     * Gets the caption.
301
     *
302
     * @return the caption
303
     */
304
    @Override
305
    public HTMLTableCaptionElement getCaption() {
306
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
307
    }
308

309
    /**
310
     * Gets the rows.
311
     *
312
     * @return the rows
313
     */
314
    @Override
315
    public HTMLCollection getRows() {
316
        return HTMLCollectionImpl.createHTMLCollectionImpl(getElementsByTagName("tr"));
1✔
317
    }
318

319
    /**
320
     * Gets the t bodies.
321
     *
322
     * @return the t bodies
323
     */
324
    @Override
325
    public HTMLCollection getTBodies() {
326
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
327
    }
328

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

339
    /**
340
     * Gets the t head.
341
     *
342
     * @return the t head
343
     */
344
    @Override
345
    public HTMLTableSectionElement getTHead() {
346
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
347
    }
348

349
    /**
350
     * Insert row.
351
     *
352
     * @param index
353
     *            the index
354
     *
355
     * @return the HTML element
356
     *
357
     * @throws DOMException
358
     *             the DOM exception
359
     */
360
    @Override
361
    public HTMLElement insertRow(int index) throws DOMException {
362
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
363
    }
364

365
    /**
366
     * Sets the caption.
367
     *
368
     * @param caption
369
     *            the new caption
370
     */
371
    @Override
372
    public void setCaption(HTMLTableCaptionElement caption) {
373
        // To change body of implemented methods use File | Settings | File Templates.
374
    }
×
375

376
    /**
377
     * Sets the t foot.
378
     *
379
     * @param tFoot
380
     *            the new t foot
381
     */
382
    @Override
383
    public void setTFoot(HTMLTableSectionElement tFoot) {
384
        // To change body of implemented methods use File | Settings | File Templates.
385
    }
×
386

387
    /**
388
     * Sets the t head.
389
     *
390
     * @param tHead
391
     *            the new t head
392
     */
393
    @Override
394
    public void setTHead(HTMLTableSectionElement tHead) {
395
        // To change body of implemented methods use File | Settings | File Templates.
396
    }
×
397
}
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