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

hazendaz / httpunit / 636

05 Dec 2025 03:27AM UTC coverage: 80.509%. Remained the same
636

push

github

hazendaz
Cleanup more old since tags

you guessed it, at this point going to jautodoc the rest so the warnings on builds go away ;)

3213 of 4105 branches covered (78.27%)

Branch coverage included in aggregate %.

8249 of 10132 relevant lines covered (81.42%)

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
public class HTMLTableCellElementImpl extends HTMLElementImpl
1✔
26
        implements HTMLTableCellElement, HTMLContainerElement, AttributeNameAdjusted {
27

28
    private static final long serialVersionUID = 1L;
29

30
    @Override
31
    ElementImpl create() {
32
        return new HTMLTableCellElementImpl();
1✔
33
    }
34

35
    // ------------------------------------------ HTMLContainerElement methods
36
    // ----------------------------------------------
37

38
    @Override
39
    public HTMLCollection getLinks() {
40
        return getHtmlDocument().getContainerDelegate().getLinks(this);
1✔
41
    }
42

43
    @Override
44
    public HTMLCollection getImages() {
45
        return getHtmlDocument().getContainerDelegate().getImages(this);
×
46
    }
47

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

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

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

63
    // -------------------------------------------- HTMLTableCellElement methods
64
    // --------------------------------------------
65

66
    @Override
67
    public String getAbbr() {
68
        return getAttributeWithNoDefault("abbr");
1✔
69
    }
70

71
    @Override
72
    public void setAbbr(String abbr) {
73
        setAttribute("abbr", abbr);
1✔
74
    }
1✔
75

76
    @Override
77
    public String getAlign() {
78
        return getAttributeWithNoDefault("align");
1✔
79
    }
80

81
    @Override
82
    public void setAlign(String align) {
83
        setAttribute("align", align);
1✔
84
    }
1✔
85

86
    @Override
87
    public String getAxis() {
88
        return getAttributeWithNoDefault("axis");
1✔
89
    }
90

91
    @Override
92
    public void setAxis(String axis) {
93
        setAttribute("axis", axis);
1✔
94
    }
1✔
95

96
    @Override
97
    public String getBgColor() {
98
        return getAttributeWithNoDefault("bgColor");
1✔
99
    }
100

101
    @Override
102
    public void setBgColor(String bgColor) {
103
        setAttribute("bgColor", bgColor);
1✔
104
    }
1✔
105

106
    @Override
107
    public int getCellIndex() {
108
        return 0; // To change body of implemented methods use File | Settings | File Templates.
×
109
    }
110

111
    @Override
112
    public String getCh() {
113
        return getAttributeWithDefault("char", ".");
1✔
114
    }
115

116
    @Override
117
    public void setCh(String ch) {
118
        setAttribute("char", ch);
1✔
119
    }
1✔
120

121
    @Override
122
    public String getChOff() {
123
        return getAttributeWithNoDefault("charoff");
1✔
124
    }
125

126
    @Override
127
    public void setChOff(String chOff) {
128
        setAttribute("charoff", chOff);
1✔
129
    }
1✔
130

131
    @Override
132
    public int getColSpan() {
133
        return getIntegerAttribute("colspan", 1);
1✔
134
    }
135

136
    @Override
137
    public void setColSpan(int colSpan) {
138
        setAttribute("colspan", colSpan);
1✔
139
    }
1✔
140

141
    @Override
142
    public String getHeaders() {
143
        return getAttributeWithNoDefault("headers");
1✔
144
    }
145

146
    @Override
147
    public void setHeaders(String headers) {
148
        setAttribute("headers", headers);
1✔
149
    }
1✔
150

151
    @Override
152
    public String getHeight() {
153
        return getAttributeWithNoDefault("height");
1✔
154
    }
155

156
    @Override
157
    public void setHeight(String height) {
158
        setAttribute("height", height);
1✔
159
    }
1✔
160

161
    @Override
162
    public boolean getNoWrap() {
163
        return getBooleanAttribute("nowrap");
1✔
164
    }
165

166
    @Override
167
    public void setNoWrap(boolean noWrap) {
168
        setAttribute("nowrap", noWrap);
1✔
169
    }
1✔
170

171
    @Override
172
    public int getRowSpan() {
173
        return getIntegerAttribute("rowspan", 1);
1✔
174
    }
175

176
    @Override
177
    public void setRowSpan(int rowSpan) {
178
        setAttribute("rowspan", rowSpan);
1✔
179
    }
1✔
180

181
    @Override
182
    public String getScope() {
183
        return getAttributeWithNoDefault("scope");
1✔
184
    }
185

186
    @Override
187
    public void setScope(String scope) {
188
        setAttribute("scope", scope);
1✔
189
    }
1✔
190

191
    @Override
192
    public String getVAlign() {
193
        return getAttributeWithDefault("valign", "middle");
1✔
194
    }
195

196
    @Override
197
    public void setVAlign(String vAlign) {
198
        setAttribute("valign", vAlign);
1✔
199
    }
1✔
200

201
    @Override
202
    public String getWidth() {
203
        return getAttributeWithNoDefault("width");
1✔
204
    }
205

206
    @Override
207
    public void setWidth(String width) {
208
        setAttribute("width", width);
1✔
209
    }
1✔
210

211
    @Override
212
    public String getJavaAttributeName(String attributeName) {
213
        if (attributeName.equals("char")) {
1✔
214
            return "ch";
1✔
215
        }
216
        if (attributeName.equals("charoff")) {
1✔
217
            return "choff";
1✔
218
        }
219
        return attributeName;
1✔
220
    }
221

222
    public void setCellIndex(int cellIndex) {
223
        // TODO Auto-generated method stub
224

225
    }
×
226

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