Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit 4a9c257

Browse files
committed
Added a test case to ensure following bug is fixed:
[1636773] assertTableRowsEqual semicolon behavior
1 parent a7de89c commit 4a9c257

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/TableAssertionsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void testAssertTableRowsEqualsTooManyExpected() throws Throwable {
145145
public void testTableWithSpaces() throws Throwable {
146146
assertTablePresent("tree");
147147
String[][] table = { { "root", "", "", "" },
148-
{ "child1", "", "child2", "" },
148+
{ "child1 ;semicolon", "", "child2", "" },
149149
{ "child1.1", "", "child2.1", "child2.2" } };
150150
assertTableEquals("tree", table);
151151
}
@@ -205,7 +205,7 @@ public void testAssertTableRowsMatchTooManyExpected() throws Throwable {
205205
public void testTableWithSpacesMatch() throws Throwable {
206206
assertTablePresent("tree");
207207
String[][] table = {{"root", "", "", ""},
208-
{"child1", "", "child2", ""},
208+
{"child1 ;semicolon", "", "child2", ""},
209209
{"child1.1", "", "child2.1", "child2.2"}};
210210
assertTableMatch("tree", table);
211211
}

jwebunit-commons-tests/src/main/resources/testcases/TableAssertionsTest/TableAssertionsTestPage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<table id="tree"><tbody>
2525
<tr><td>root</td><td>&nbsp;</td>
2626
<td>&nbsp;</td><td>&nbsp;</td></tr>
27-
<tr><td>child1</td><td>&nbsp;</td>
27+
<tr><td><a href="">child1</a><a href=""> ;semicolon</a></td><td>&nbsp;</td>
2828
<td>child2</td><td>&nbsp;</td></tr>
2929
<tr><td>child1.1</td><td>&nbsp;</td>
3030
<td>child2.1</td><td>child2.2</td></tr>

0 commit comments

Comments
 (0)