Author: abelevich
Date: 2009-03-25 11:33:11 -0400 (Wed, 25 Mar 2009)
New Revision: 13179
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java
Log:
reset data before on renderPage phase
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java 2009-03-25
15:03:13 UTC (rev 13178)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java 2009-03-25
15:33:11 UTC (rev 13179)
@@ -38,10 +38,12 @@
private static final String ALL_MSGS = "all_messages";
private static final String SAVE_BTN = "_save";
+
+ private static final String RESET_DATA = "#{validationBean.reset}";
@Test
public void testGraphValidatorComponentWithComponentSubtree(Template template) {
- renderPage(template);
+ renderPage(template,RESET_DATA);
writeStatus("Check that components subtree confined by the component is
validated "
+ "with Hibernate Validator properly");
@@ -94,7 +96,7 @@
@Test
public void testGraphValidatorComponentWithValueBoundToBean(Template template) {
- renderPage(template);
+ renderPage(template, RESET_DATA);
writeStatus("Check that component validates a bean bound to component value
property. "
+ "After model is updated the bean must be validated again.");
Show replies by date