Author: ppitonak(a)redhat.com
Date: 2011-08-18 10:38:05 -0400 (Thu, 18 Aug 2011)
New Revision: 22661
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java
Log:
tests for rich:calendar model put to group 4.2
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java 2011-08-18
14:13:15 UTC (rev 22660)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java 2011-08-18
14:38:05 UTC (rev 22661)
@@ -47,7 +47,7 @@
return buildUrl(contextPath,
"faces/components/richCalendar/dataModel.xhtml");
}
- @Test(groups = "4.0.0.Final")
+ @Test(groups = { "4.0.0.Final", "4.2" })
@IssueTracking("https://issues.jboss.org/browse/RFPL-1222")
public void testClasses() {
selenium.click(input);
@@ -59,22 +59,27 @@
switch (i % 7) {
case 0:
case 6:
- assertTrue(selenium.belongsClass(cellDay.format(i),
"yellowDay"), "Weekends should be yellow (cell " + i +
")");
+ assertTrue(selenium.belongsClass(cellDay.format(i),
"yellowDay"),
+ "Weekends should be yellow (cell " + i +
")");
break;
case 2:
- assertTrue(selenium.belongsClass(cellDay.format(i),
"aquaDay"), "Tuesdays should be blue (cell " + i + ")");
+ assertTrue(selenium.belongsClass(cellDay.format(i),
"aquaDay"), "Tuesdays should be blue (cell "
+ + i + ")");
break;
case 4:
- assertTrue(selenium.belongsClass(cellDay.format(i),
"aquaDay"), "Thursdays should be blue (cell " + i + ")");
+ assertTrue(selenium.belongsClass(cellDay.format(i),
"aquaDay"), "Thursdays should be blue (cell "
+ + i + ")");
break;
default:
- assertFalse(selenium.belongsClass(cellDay.format(i),
"aquaDay"), "Mondays, Wednesdays and Fridays should not be styled (cell
" + i + ")");
- assertFalse(selenium.belongsClass(cellDay.format(i),
"yellowDay"), "Mondays, Wednesdays and Fridays should not be styled (cell
" + i + ")");
+ assertFalse(selenium.belongsClass(cellDay.format(i),
"aquaDay"),
+ "Mondays, Wednesdays and Fridays should not be styled (cell
" + i + ")");
+ assertFalse(selenium.belongsClass(cellDay.format(i),
"yellowDay"),
+ "Mondays, Wednesdays and Fridays should not be styled (cell
" + i + ")");
}
}
}
- @Test(groups = "4.0.0.Final")
+ @Test(groups = { "4.0.0.Final", "4.2" })
@Override
@IssueTracking("https://issues.jboss.org/browse/RFPL-1222")
public void testApplyButton() {
Show replies by thread