• 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

90.0
/src/main/java/com/meterware/httpunit/dom/HTMLTableCellElementImpl.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.html.HTMLCollection;
23
import org.w3c.dom.html.HTMLTableCellElement;
24

25
/**
26
 * The Class HTMLTableCellElementImpl.
27
 */
28
public class HTMLTableCellElementImpl extends HTMLElementImpl
1✔
29
        implements HTMLTableCellElement, HTMLContainerElement, AttributeNameAdjusted {
30

31
    /** The Constant serialVersionUID. */
32
    private static final long serialVersionUID = 1L;
33

34
    @Override
35
    ElementImpl create() {
36
        return new HTMLTableCellElementImpl();
1✔
37
    }
38

39
    // ------------------------------------------ HTMLContainerElement methods
40
    // ----------------------------------------------
41

42
    @Override
43
    public HTMLCollection getLinks() {
44
        return getHtmlDocument().getContainerDelegate().getLinks(this);
1✔
45
    }
46

47
    @Override
48
    public HTMLCollection getImages() {
49
        return getHtmlDocument().getContainerDelegate().getImages(this);
×
50
    }
51

52
    @Override
53
    public HTMLCollection getApplets() {
54
        return getHtmlDocument().getContainerDelegate().getApplets(this);
×
55
    }
56

57
    @Override
58
    public HTMLCollection getForms() {
59
        return getHtmlDocument().getContainerDelegate().getForms(this);
×
60
    }
61

62
    @Override
63
    public HTMLCollection getAnchors() {
64
        return getHtmlDocument().getContainerDelegate().getAnchors(this);
×
65
    }
66

67
    // -------------------------------------------- HTMLTableCellElement methods
68
    // --------------------------------------------
69

70
    /**
71
     * Gets the abbr.
72
     *
73
     * @return the abbr
74
     */
75
    @Override
76
    public String getAbbr() {
77
        return getAttributeWithNoDefault("abbr");
1✔
78
    }
79

80
    /**
81
     * Sets the abbr.
82
     *
83
     * @param abbr
84
     *            the new abbr
85
     */
86
    @Override
87
    public void setAbbr(String abbr) {
88
        setAttribute("abbr", abbr);
1✔
89
    }
1✔
90

91
    /**
92
     * Gets the align.
93
     *
94
     * @return the align
95
     */
96
    @Override
97
    public String getAlign() {
98
        return getAttributeWithNoDefault("align");
1✔
99
    }
100

101
    /**
102
     * Sets the align.
103
     *
104
     * @param align
105
     *            the new align
106
     */
107
    @Override
108
    public void setAlign(String align) {
109
        setAttribute("align", align);
1✔
110
    }
1✔
111

112
    /**
113
     * Gets the axis.
114
     *
115
     * @return the axis
116
     */
117
    @Override
118
    public String getAxis() {
119
        return getAttributeWithNoDefault("axis");
1✔
120
    }
121

122
    /**
123
     * Sets the axis.
124
     *
125
     * @param axis
126
     *            the new axis
127
     */
128
    @Override
129
    public void setAxis(String axis) {
130
        setAttribute("axis", axis);
1✔
131
    }
1✔
132

133
    /**
134
     * Gets the bg color.
135
     *
136
     * @return the bg color
137
     */
138
    @Override
139
    public String getBgColor() {
140
        return getAttributeWithNoDefault("bgColor");
1✔
141
    }
142

143
    /**
144
     * Sets the bg color.
145
     *
146
     * @param bgColor
147
     *            the new bg color
148
     */
149
    @Override
150
    public void setBgColor(String bgColor) {
151
        setAttribute("bgColor", bgColor);
1✔
152
    }
1✔
153

154
    /**
155
     * Gets the cell index.
156
     *
157
     * @return the cell index
158
     */
159
    @Override
160
    public int getCellIndex() {
161
        return 0; // To change body of implemented methods use File | Settings | File Templates.
×
162
    }
163

164
    /**
165
     * Gets the ch.
166
     *
167
     * @return the ch
168
     */
169
    @Override
170
    public String getCh() {
171
        return getAttributeWithDefault("char", ".");
1✔
172
    }
173

174
    /**
175
     * Sets the ch.
176
     *
177
     * @param ch
178
     *            the new ch
179
     */
180
    @Override
181
    public void setCh(String ch) {
182
        setAttribute("char", ch);
1✔
183
    }
1✔
184

185
    /**
186
     * Gets the ch off.
187
     *
188
     * @return the ch off
189
     */
190
    @Override
191
    public String getChOff() {
192
        return getAttributeWithNoDefault("charoff");
1✔
193
    }
194

195
    /**
196
     * Sets the ch off.
197
     *
198
     * @param chOff
199
     *            the new ch off
200
     */
201
    @Override
202
    public void setChOff(String chOff) {
203
        setAttribute("charoff", chOff);
1✔
204
    }
1✔
205

206
    /**
207
     * Gets the col span.
208
     *
209
     * @return the col span
210
     */
211
    @Override
212
    public int getColSpan() {
213
        return getIntegerAttribute("colspan", 1);
1✔
214
    }
215

216
    /**
217
     * Sets the col span.
218
     *
219
     * @param colSpan
220
     *            the new col span
221
     */
222
    @Override
223
    public void setColSpan(int colSpan) {
224
        setAttribute("colspan", colSpan);
1✔
225
    }
1✔
226

227
    /**
228
     * Gets the headers.
229
     *
230
     * @return the headers
231
     */
232
    @Override
233
    public String getHeaders() {
234
        return getAttributeWithNoDefault("headers");
1✔
235
    }
236

237
    /**
238
     * Sets the headers.
239
     *
240
     * @param headers
241
     *            the new headers
242
     */
243
    @Override
244
    public void setHeaders(String headers) {
245
        setAttribute("headers", headers);
1✔
246
    }
1✔
247

248
    /**
249
     * Gets the height.
250
     *
251
     * @return the height
252
     */
253
    @Override
254
    public String getHeight() {
255
        return getAttributeWithNoDefault("height");
1✔
256
    }
257

258
    /**
259
     * Sets the height.
260
     *
261
     * @param height
262
     *            the new height
263
     */
264
    @Override
265
    public void setHeight(String height) {
266
        setAttribute("height", height);
1✔
267
    }
1✔
268

269
    /**
270
     * Gets the no wrap.
271
     *
272
     * @return the no wrap
273
     */
274
    @Override
275
    public boolean getNoWrap() {
276
        return getBooleanAttribute("nowrap");
1✔
277
    }
278

279
    /**
280
     * Sets the no wrap.
281
     *
282
     * @param noWrap
283
     *            the new no wrap
284
     */
285
    @Override
286
    public void setNoWrap(boolean noWrap) {
287
        setAttribute("nowrap", noWrap);
1✔
288
    }
1✔
289

290
    /**
291
     * Gets the row span.
292
     *
293
     * @return the row span
294
     */
295
    @Override
296
    public int getRowSpan() {
297
        return getIntegerAttribute("rowspan", 1);
1✔
298
    }
299

300
    /**
301
     * Sets the row span.
302
     *
303
     * @param rowSpan
304
     *            the new row span
305
     */
306
    @Override
307
    public void setRowSpan(int rowSpan) {
308
        setAttribute("rowspan", rowSpan);
1✔
309
    }
1✔
310

311
    /**
312
     * Gets the scope.
313
     *
314
     * @return the scope
315
     */
316
    @Override
317
    public String getScope() {
318
        return getAttributeWithNoDefault("scope");
1✔
319
    }
320

321
    /**
322
     * Sets the scope.
323
     *
324
     * @param scope
325
     *            the new scope
326
     */
327
    @Override
328
    public void setScope(String scope) {
329
        setAttribute("scope", scope);
1✔
330
    }
1✔
331

332
    /**
333
     * Gets the v align.
334
     *
335
     * @return the v align
336
     */
337
    @Override
338
    public String getVAlign() {
339
        return getAttributeWithDefault("valign", "middle");
1✔
340
    }
341

342
    /**
343
     * Sets the v align.
344
     *
345
     * @param vAlign
346
     *            the new v align
347
     */
348
    @Override
349
    public void setVAlign(String vAlign) {
350
        setAttribute("valign", vAlign);
1✔
351
    }
1✔
352

353
    /**
354
     * Gets the width.
355
     *
356
     * @return the width
357
     */
358
    @Override
359
    public String getWidth() {
360
        return getAttributeWithNoDefault("width");
1✔
361
    }
362

363
    /**
364
     * Sets the width.
365
     *
366
     * @param width
367
     *            the new width
368
     */
369
    @Override
370
    public void setWidth(String width) {
371
        setAttribute("width", width);
1✔
372
    }
1✔
373

374
    @Override
375
    public String getJavaAttributeName(String attributeName) {
376
        if (attributeName.equals("char")) {
1✔
377
            return "ch";
1✔
378
        }
379
        if (attributeName.equals("charoff")) {
1✔
380
            return "choff";
1✔
381
        }
382
        return attributeName;
1✔
383
    }
384

385
    /**
386
     * Sets the cell index.
387
     *
388
     * @param cellIndex
389
     *            the new cell index
390
     */
391
    public void setCellIndex(int cellIndex) {
392
        // TODO Auto-generated method stub
393

394
    }
×
395

396
}
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