• 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

70.59
/src/main/java/com/meterware/httpunit/dom/CharacterDataImpl.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.CharacterData;
11
import org.w3c.dom.DOMException;
12

13
/**
14
 * The Class CharacterDataImpl.
15
 */
16
public abstract class CharacterDataImpl extends NodeImpl implements CharacterData {
1✔
17

18
    /** The Constant serialVersionUID. */
19
    private static final long serialVersionUID = 1L;
20

21
    /** The data. */
22
    private String _data;
23

24
    /**
25
     * Initialize.
26
     *
27
     * @param ownerDocument
28
     *            the owner document
29
     * @param data
30
     *            the data
31
     */
32
    protected void initialize(DocumentImpl ownerDocument, String data) {
33
        super.initialize(ownerDocument);
1✔
34
        _data = data;
1✔
35
    }
1✔
36

37
    @Override
38
    public String getData() throws DOMException {
39
        return _data;
1✔
40
    }
41

42
    @Override
43
    public void setData(String data) throws DOMException {
44
        if (data == null) {
1✔
45
            data = "";
1✔
46
        }
47
        _data = data;
1✔
48
    }
1✔
49

50
    @Override
51
    public int getLength() {
52
        return _data.length();
1✔
53
    }
54

55
    @Override
56
    public String substringData(int offset, int count) throws DOMException {
57
        return null;
×
58
    }
59

60
    @Override
61
    public void appendData(String arg) throws DOMException {
62
    }
×
63

64
    @Override
65
    public void insertData(int offset, String arg) throws DOMException {
66
    }
×
67

68
    @Override
69
    public void deleteData(int offset, int count) throws DOMException {
70
    }
×
71

72
    @Override
73
    public void replaceData(int offset, int count, String arg) throws DOMException {
74
    }
×
75

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