• 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

95.0
/src/main/java/com/meterware/httpunit/dom/HTMLImageElementImpl.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.HTMLImageElement;
23

24
/**
25
 * The Class HTMLImageElementImpl.
26
 */
27
public class HTMLImageElementImpl extends HTMLElementImpl implements HTMLImageElement {
1✔
28

29
    /** The Constant serialVersionUID. */
30
    private static final long serialVersionUID = 1L;
31

32
    @Override
33
    ElementImpl create() {
34
        return new HTMLImageElementImpl();
1✔
35
    }
36

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

47
    /**
48
     * Gets the alt.
49
     *
50
     * @return the alt
51
     */
52
    @Override
53
    public String getAlt() {
54
        return getAttributeWithNoDefault("alt");
1✔
55
    }
56

57
    /**
58
     * Gets the border.
59
     *
60
     * @return the border
61
     */
62
    @Override
63
    public String getBorder() {
64
        return getAttributeWithNoDefault("border");
1✔
65
    }
66

67
    /**
68
     * Gets the height.
69
     *
70
     * @return the height
71
     */
72
    @Override
73
    public String getHeight() {
74
        return getAttributeWithNoDefault("height");
1✔
75
    }
76

77
    /**
78
     * Gets the hspace.
79
     *
80
     * @return the hspace
81
     */
82
    @Override
83
    public String getHspace() {
84
        return getAttributeWithNoDefault("hspace");
1✔
85
    }
86

87
    /**
88
     * Gets the checks if is map.
89
     *
90
     * @return the checks if is map
91
     */
92
    @Override
93
    public boolean getIsMap() {
94
        return getBooleanAttribute("ismap");
1✔
95
    }
96

97
    /**
98
     * Gets the long desc.
99
     *
100
     * @return the long desc
101
     */
102
    @Override
103
    public String getLongDesc() {
104
        return getAttributeWithNoDefault("longdesc");
1✔
105
    }
106

107
    /**
108
     * Gets the low src.
109
     *
110
     * @return the low src
111
     */
112
    @Override
113
    public String getLowSrc() {
114
        return null;
×
115
    }
116

117
    /**
118
     * Gets the name.
119
     *
120
     * @return the name
121
     */
122
    @Override
123
    public String getName() {
124
        return getAttributeWithNoDefault("name");
1✔
125
    }
126

127
    /**
128
     * Gets the src.
129
     *
130
     * @return the src
131
     */
132
    @Override
133
    public String getSrc() {
134
        return getAttributeWithNoDefault("src");
1✔
135
    }
136

137
    /**
138
     * Gets the use map.
139
     *
140
     * @return the use map
141
     */
142
    @Override
143
    public String getUseMap() {
144
        return getAttributeWithNoDefault("usemap");
1✔
145
    }
146

147
    /**
148
     * Gets the vspace.
149
     *
150
     * @return the vspace
151
     */
152
    @Override
153
    public String getVspace() {
154
        return getAttributeWithNoDefault("vspace");
1✔
155
    }
156

157
    /**
158
     * Gets the width.
159
     *
160
     * @return the width
161
     */
162
    @Override
163
    public String getWidth() {
164
        return getAttributeWithNoDefault("width");
1✔
165
    }
166

167
    /**
168
     * Sets the align.
169
     *
170
     * @param align
171
     *            the new align
172
     */
173
    @Override
174
    public void setAlign(String align) {
175
        setAttribute("align", align);
1✔
176
    }
1✔
177

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

189
    /**
190
     * Sets the border.
191
     *
192
     * @param border
193
     *            the new border
194
     */
195
    @Override
196
    public void setBorder(String border) {
197
        setAttribute("border", border);
1✔
198
    }
1✔
199

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

211
    /**
212
     * Sets the hspace.
213
     *
214
     * @param hspace
215
     *            the new hspace
216
     */
217
    @Override
218
    public void setHspace(String hspace) {
219
        setAttribute("hspace", hspace);
1✔
220
    }
1✔
221

222
    /**
223
     * Sets the checks if is map.
224
     *
225
     * @param isMap
226
     *            the new checks if is map
227
     */
228
    @Override
229
    public void setIsMap(boolean isMap) {
230
        setAttribute("ismap", isMap);
1✔
231
    }
1✔
232

233
    /**
234
     * Sets the long desc.
235
     *
236
     * @param longDesc
237
     *            the new long desc
238
     */
239
    @Override
240
    public void setLongDesc(String longDesc) {
241
        setAttribute("longdesc", longDesc);
1✔
242
    }
1✔
243

244
    /**
245
     * Sets the low src.
246
     *
247
     * @param lowSrc
248
     *            the new low src
249
     */
250
    @Override
251
    public void setLowSrc(String lowSrc) {
252
    }
×
253

254
    /**
255
     * Sets the name.
256
     *
257
     * @param name
258
     *            the new name
259
     */
260
    @Override
261
    public void setName(String name) {
262
        setAttribute("name", name);
1✔
263
    }
1✔
264

265
    /**
266
     * Sets the src.
267
     *
268
     * @param src
269
     *            the new src
270
     */
271
    @Override
272
    public void setSrc(String src) {
273
        setAttribute("src", src);
1✔
274
    }
1✔
275

276
    /**
277
     * Sets the use map.
278
     *
279
     * @param useMap
280
     *            the new use map
281
     */
282
    @Override
283
    public void setUseMap(String useMap) {
284
        setAttribute("usemap", useMap);
1✔
285
    }
1✔
286

287
    /**
288
     * Sets the vspace.
289
     *
290
     * @param vspace
291
     *            the new vspace
292
     */
293
    @Override
294
    public void setVspace(String vspace) {
295
        setAttribute("vspace", vspace);
1✔
296
    }
1✔
297

298
    /**
299
     * Sets the width.
300
     *
301
     * @param width
302
     *            the new width
303
     */
304
    @Override
305
    public void setWidth(String width) {
306
        setAttribute("width", width);
1✔
307
    }
1✔
308
}
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