• 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

79.41
/src/main/java/com/meterware/httpunit/dom/HTMLTableRowElementImpl.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.HTMLTableRowElement;
26

27
/**
28
 * The Class HTMLTableRowElementImpl.
29
 */
30
public class HTMLTableRowElementImpl extends HTMLElementImpl implements HTMLTableRowElement, AttributeNameAdjusted {
1✔
31

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

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

40
    /**
41
     * Gets the align.
42
     *
43
     * @return the align
44
     */
45
    @Override
46
    public String getAlign() {
47
        return getAttributeWithNoDefault("align");
1✔
48
    }
49

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

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

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

82
    /**
83
     * Gets the ch.
84
     *
85
     * @return the ch
86
     */
87
    @Override
88
    public String getCh() {
89
        return getAttributeWithDefault("char", ".");
1✔
90
    }
91

92
    /**
93
     * Sets the ch.
94
     *
95
     * @param ch
96
     *            the new ch
97
     */
98
    @Override
99
    public void setCh(String ch) {
100
        setAttribute("char", ch);
1✔
101
    }
1✔
102

103
    /**
104
     * Gets the ch off.
105
     *
106
     * @return the ch off
107
     */
108
    @Override
109
    public String getChOff() {
110
        return getAttributeWithNoDefault("charoff");
1✔
111
    }
112

113
    /**
114
     * Sets the ch off.
115
     *
116
     * @param chOff
117
     *            the new ch off
118
     */
119
    @Override
120
    public void setChOff(String chOff) {
121
        setAttribute("charoff", chOff);
1✔
122
    }
1✔
123

124
    /**
125
     * Gets the v align.
126
     *
127
     * @return the v align
128
     */
129
    @Override
130
    public String getVAlign() {
131
        return getAttributeWithDefault("valign", "middle");
1✔
132
    }
133

134
    /**
135
     * Sets the v align.
136
     *
137
     * @param vAlign
138
     *            the new v align
139
     */
140
    @Override
141
    public void setVAlign(String vAlign) {
142
        setAttribute("valign", vAlign);
1✔
143
    }
1✔
144

145
    /**
146
     * Delete cell.
147
     *
148
     * @param index
149
     *            the index
150
     *
151
     * @throws DOMException
152
     *             the DOM exception
153
     */
154
    @Override
155
    public void deleteCell(int index) throws DOMException {
156
        // To change body of implemented methods use File | Settings | File Templates.
157
    }
×
158

159
    /**
160
     * Gets the cells.
161
     *
162
     * @return the cells
163
     */
164
    @Override
165
    public HTMLCollection getCells() {
166
        return HTMLCollectionImpl.createHTMLCollectionImpl(getElementsByTagNames(new String[] { "td", "th " }));
1✔
167
    }
168

169
    /**
170
     * Gets the row index.
171
     *
172
     * @return the row index
173
     */
174
    @Override
175
    public int getRowIndex() {
176
        return 0; // To change body of implemented methods use File | Settings | File Templates.
×
177
    }
178

179
    /**
180
     * Gets the section row index.
181
     *
182
     * @return the section row index
183
     */
184
    @Override
185
    public int getSectionRowIndex() {
186
        return 0; // To change body of implemented methods use File | Settings | File Templates.
×
187
    }
188

189
    /**
190
     * Insert cell.
191
     *
192
     * @param index
193
     *            the index
194
     *
195
     * @return the HTML element
196
     *
197
     * @throws DOMException
198
     *             the DOM exception
199
     */
200
    @Override
201
    public HTMLElement insertCell(int index) throws DOMException {
202
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
203
    }
204

205
    @Override
206
    public String getJavaAttributeName(String attributeName) {
207
        if (attributeName.equals("char")) {
1✔
208
            return "ch";
1✔
209
        }
210
        if (attributeName.equals("charoff")) {
1✔
211
            return "choff";
1✔
212
        }
213
        return attributeName;
1✔
214
    }
215

216
    /**
217
     * Sets the row index.
218
     *
219
     * @param rowIndex
220
     *            the new row index
221
     */
222
    public void setRowIndex(int rowIndex) {
223
        // TODO Auto-generated method stub
224

225
    }
×
226

227
    /**
228
     * Sets the section row index.
229
     *
230
     * @param sectionRowIndex
231
     *            the new section row index
232
     */
233
    public void setSectionRowIndex(int sectionRowIndex) {
234
        // TODO Auto-generated method stub
235

236
    }
×
237

238
    /**
239
     * Sets the cells.
240
     *
241
     * @param cells
242
     *            the new cells
243
     */
244
    public void setCells(HTMLCollection cells) {
245
        // TODO Auto-generated method stub
246

247
    }
×
248
}
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