Author: ppitonak(a)redhat.com
Date: 2010-10-29 08:15:37 -0400 (Fri, 29 Oct 2010)
New Revision: 19763
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java
Log:
* method assertPhases changed so that it works in both Mojarra and Myfaces
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java 2010-10-29
11:58:56 UTC (rev 19762)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractMetamerTest.java 2010-10-29
12:15:37 UTC (rev 19763)
@@ -38,6 +38,7 @@
import org.jboss.test.selenium.locator.ElementLocator;
import org.jboss.test.selenium.locator.JQueryLocator;
import org.jboss.test.selenium.waiting.EventFiredCondition;
+import org.richfaces.tests.metamer.Phase;
import org.richfaces.tests.metamer.TemplatesList;
import org.richfaces.tests.metamer.ftest.annotations.Inject;
import org.richfaces.tests.metamer.ftest.annotations.Templates;
@@ -224,7 +225,7 @@
phase = selenium.getText(jq("div#phasesPanel li:eq(" + i +
")"));
// check that it is really name of a phase
if (!phase.startsWith("* ")) {
- assertEquals(phase, phases[phaseNumber - 1].toString(), "Phase nr.
" + phaseNumber);
+ assertEquals(phase, new Phase(phases[phaseNumber - 1]).toString(),
"Phase nr. " + phaseNumber);
phaseNumber++;
}
}
Show replies by date