• 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

80.0
/src/main/java/com/meterware/httpunit/TableRow.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 com.meterware.httpunit.scripting.ScriptableDelegate;
11

12
import java.util.ArrayList;
13

14
import org.w3c.dom.html.HTMLTableCellElement;
15
import org.w3c.dom.html.HTMLTableRowElement;
16

17
/**
18
 * The Class TableRow.
19
 */
20
public class TableRow extends HTMLElementBase {
21

22
    /** The cells. */
23
    private ArrayList _cells = new ArrayList<>();
1✔
24

25
    /** The web table. */
26
    private WebTable _webTable;
27

28
    /**
29
     * Instantiates a new table row.
30
     *
31
     * @param webTable
32
     *            the web table
33
     * @param element
34
     *            the element
35
     */
36
    TableRow(WebTable webTable, HTMLTableRowElement element) {
37
        super(element);
1✔
38
        _webTable = webTable;
1✔
39
    }
1✔
40

41
    /**
42
     * Gets the cells.
43
     *
44
     * @return the cells
45
     */
46
    TableCell[] getCells() {
47

48
        return (TableCell[]) _cells.toArray(new TableCell[_cells.size()]);
1✔
49
    }
50

51
    /**
52
     * New table cell.
53
     *
54
     * @param element
55
     *            the element
56
     *
57
     * @return the table cell
58
     */
59
    TableCell newTableCell(HTMLTableCellElement element) {
60
        return _webTable.newTableCell(element);
1✔
61
    }
62

63
    /**
64
     * Adds the table cell.
65
     *
66
     * @param cell
67
     *            the cell
68
     */
69
    void addTableCell(TableCell cell) {
70
        _cells.add(cell);
1✔
71
    }
1✔
72

73
    @Override
74
    public ScriptableDelegate newScriptable() {
75
        return new HTMLElementScriptable(this);
×
76
    }
77

78
    @Override
79
    public ScriptableDelegate getParentDelegate() {
80
        return _webTable.getParentDelegate();
×
81
    }
82
}
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