• 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

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

15
/**
16
 * The Class HTMLTableRowElementImpl.
17
 */
18
public class HTMLTableRowElementImpl extends HTMLElementImpl implements HTMLTableRowElement, AttributeNameAdjusted {
1✔
19

20
    /** The Constant serialVersionUID. */
21
    private static final long serialVersionUID = 1L;
22

23
    @Override
24
    ElementImpl create() {
25
        return new HTMLTableRowElementImpl();
1✔
26
    }
27

28
    /**
29
     * Gets the align.
30
     *
31
     * @return the align
32
     */
33
    @Override
34
    public String getAlign() {
35
        return getAttributeWithNoDefault("align");
1✔
36
    }
37

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

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

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

70
    /**
71
     * Gets the ch.
72
     *
73
     * @return the ch
74
     */
75
    @Override
76
    public String getCh() {
77
        return getAttributeWithDefault("char", ".");
1✔
78
    }
79

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

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

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

112
    /**
113
     * Gets the v align.
114
     *
115
     * @return the v align
116
     */
117
    @Override
118
    public String getVAlign() {
119
        return getAttributeWithDefault("valign", "middle");
1✔
120
    }
121

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

133
    /**
134
     * Delete cell.
135
     *
136
     * @param index
137
     *            the index
138
     *
139
     * @throws DOMException
140
     *             the DOM exception
141
     */
142
    @Override
143
    public void deleteCell(int index) throws DOMException {
144
        // To change body of implemented methods use File | Settings | File Templates.
145
    }
×
146

147
    /**
148
     * Gets the cells.
149
     *
150
     * @return the cells
151
     */
152
    @Override
153
    public HTMLCollection getCells() {
154
        return HTMLCollectionImpl.createHTMLCollectionImpl(getElementsByTagNames(new String[] { "td", "th " }));
1✔
155
    }
156

157
    /**
158
     * Gets the row index.
159
     *
160
     * @return the row index
161
     */
162
    @Override
163
    public int getRowIndex() {
164
        return 0; // To change body of implemented methods use File | Settings | File Templates.
×
165
    }
166

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

177
    /**
178
     * Insert cell.
179
     *
180
     * @param index
181
     *            the index
182
     *
183
     * @return the HTML element
184
     *
185
     * @throws DOMException
186
     *             the DOM exception
187
     */
188
    @Override
189
    public HTMLElement insertCell(int index) throws DOMException {
190
        return null; // To change body of implemented methods use File | Settings | File Templates.
×
191
    }
192

193
    @Override
194
    public String getJavaAttributeName(String attributeName) {
195
        if (attributeName.equals("char")) {
1✔
196
            return "ch";
1✔
197
        }
198
        if (attributeName.equals("charoff")) {
1✔
199
            return "choff";
1✔
200
        }
201
        return attributeName;
1✔
202
    }
203

204
    /**
205
     * Sets the row index.
206
     *
207
     * @param rowIndex
208
     *            the new row index
209
     */
210
    public void setRowIndex(int rowIndex) {
211
        // TODO Auto-generated method stub
212

213
    }
×
214

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

224
    }
×
225

226
    /**
227
     * Sets the cells.
228
     *
229
     * @param cells
230
     *            the new cells
231
     */
232
    public void setCells(HTMLCollection cells) {
233
        // TODO Auto-generated method stub
234

235
    }
×
236
}
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