• 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

83.33
/src/main/java/com/meterware/httpunit/TableCell.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;
9

10
import java.net.URL;
11

12
import org.w3c.dom.html.HTMLTableCellElement;
13

14
/**
15
 * A single cell in an HTML table.
16
 **/
17
public class TableCell extends BlockElement {
18

19
    /** The element. */
20
    private HTMLTableCellElement _element;
21

22
    /**
23
     * Returns the number of columns spanned by this cell.
24
     *
25
     * @return the col span
26
     */
27
    public int getColSpan() {
28
        return _element.getColSpan();
1✔
29
    }
30

31
    /**
32
     * Returns the number of rows spanned by this cell.
33
     *
34
     * @return the row span
35
     */
36
    public int getRowSpan() {
37
        return _element.getRowSpan();
1✔
38
    }
39

40
    /**
41
     * Returns the text value of this cell.
42
     *
43
     * @return the string
44
     *
45
     * @deprecated as of 1.6, use #getText()
46
     */
47
    @Deprecated
48
    public String asText() {
49
        return getText();
×
50
    }
51

52
    // ---------------------------------------- package methods -----------------------------------------
53

54
    /**
55
     * Instantiates a new table cell.
56
     *
57
     * @param response
58
     *            the response
59
     * @param frame
60
     *            the frame
61
     * @param element
62
     *            the element
63
     * @param url
64
     *            the url
65
     * @param parentTarget
66
     *            the parent target
67
     * @param characterSet
68
     *            the character set
69
     */
70
    TableCell(WebResponse response, FrameSelector frame, HTMLTableCellElement element, URL url, String parentTarget,
71
            String characterSet) {
72
        super(response, frame, url, parentTarget, element, characterSet);
1✔
73
        _element = element;
1✔
74
    }
1✔
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