01: package fat;
02:
03: import fit.*;
04:
05: public class TableParseFixture extends ColumnFixture {
06:
07: public String HTML;
08: public int Row;
09: public int Column;
10:
11: public String CellBody() throws Exception {
12: return cell().body;
13: }
14:
15: public String CellTag() throws Exception {
16: return cell().tag;
17: }
18:
19: public String RowTag() throws Exception {
20: return row().tag;
21: }
22:
23: public String TableTag() throws Exception {
24: return table().tag;
25: }
26:
27: private Parse table() throws Exception {
28: return new Parse(HTML);
29: }
30:
31: private Parse row() throws Exception {
32: return table().at(0, Row - 1);
33: }
34:
35: private Parse cell() throws Exception {
36: return row().at(0, Column - 1);
37: }
38: }
|