Author: lfryc(a)redhat.com
Date: 2009-12-14 10:12:25 -0500 (Mon, 14 Dec 2009)
New Revision: 16122
Modified:
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/dataTable/DataTableTestCase.java
branches/sandbox/rf-demo-ftest-iexplore/src/test/resources/org/jboss/richfaces/integrationTest/dataTable/messages-DataTableTestCase.properties
Log:
* DataTableTestCase
- string was normalized by deleting all whitespaces - the expected content of whole data
table was changes adequately in messages
Modified:
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/dataTable/DataTableTestCase.java
===================================================================
---
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/dataTable/DataTableTestCase.java 2009-12-14
15:11:00 UTC (rev 16121)
+++
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/dataTable/DataTableTestCase.java 2009-12-14
15:12:25 UTC (rev 16122)
@@ -23,6 +23,7 @@
import static org.testng.Assert.*;
+import org.apache.commons.lang.StringUtils;
import org.jboss.richfaces.integrationTest.AbstractDataIterationTestCase;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@@ -47,7 +48,9 @@
openTab(MSG_TAB_TO_OPEN);
scrollIntoView(LOC_FIELDSET_HEADER, true);
- assertEquals(selenium.getText(LOC_TABLE), MSG_TABLE_TEXT_CONTENT, "Table
doesn't contain expected text");
+ String tableText = selenium.getText(LOC_TABLE);
+ tableText = StringUtils.deleteWhitespace(tableText);
+ assertEquals(tableText, MSG_TABLE_TEXT_CONTENT, "Table doesn't contain
expected text");
}
@SuppressWarnings("unused")
Modified:
branches/sandbox/rf-demo-ftest-iexplore/src/test/resources/org/jboss/richfaces/integrationTest/dataTable/messages-DataTableTestCase.properties
===================================================================
---
branches/sandbox/rf-demo-ftest-iexplore/src/test/resources/org/jboss/richfaces/integrationTest/dataTable/messages-DataTableTestCase.properties 2009-12-14
15:11:00 UTC (rev 16121)
+++
branches/sandbox/rf-demo-ftest-iexplore/src/test/resources/org/jboss/richfaces/integrationTest/dataTable/messages-DataTableTestCase.properties 2009-12-14
15:12:25 UTC (rev 16122)
@@ -1,2 +1,2 @@
TAB_TO_OPEN=Usage
-TABLE_TEXT_CONTENT=ExpensessubtotalsMealsHotelsTransportTotals$196.27$442.00$162.00$800.27San
Jose25-Aug-97$37.74$112.00$45.0026-Aug-97$27.28$112.00$45.00$65.02$224.00$90.00$379.02Seattle27-Aug-97$96.25$109.00$36.0028-Aug-97$35.00$109.00$36.00$131.25$218.00$72.00$421.25
+TABLE_TEXT_CONTENT=ExpensessubtotalsMealsHotelsTransportTotals$196.27$442.00$162.00$800.27SanJose25-Aug-97$37.74$112.00$45.0026-Aug-97$27.28$112.00$45.00$65.02$224.00$90.00$379.02Seattle27-Aug-97$96.25$109.00$36.0028-Aug-97$35.00$109.00$36.00$131.25$218.00$72.00$421.25
Show replies by date