1
2
3
4
5 package org.w3c.tidy.servlet;
6
7 import com.meterware.httpunit.WebResponse;
8 import com.meterware.httpunit.WebTable;
9
10 /***
11 *
12 *
13 */
14 public class TableFormatTest extends TidyServletCase {
15
16 /***
17 * Instantiates a new test case.
18 * @param name test name
19 */
20 public TableFormatTest(String name)
21 {
22 super(name);
23 }
24
25 /***
26 * Check that the table has one row even so it is not well formated initialy
27 * @throws Exception any axception thrown during test.
28 */
29 public void testTableResponse() throws Exception
30 {
31 WebResponse response = getResponse();
32
33 WebTable[] tables = response.getTables();
34
35 assertEquals("Expected 1 table in result.", 1, tables.length);
36 assertEquals("Expected 1 table row in result.", 1, tables[0].getRowCount());
37 }
38 }