Author: ppitonak(a)redhat.com
Date: 2011-11-22 07:18:09 -0500 (Tue, 22 Nov 2011)
New Revision: 22972
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jStatus/TestInstantAttributes.java
Log:
tests for a4j:status fixed
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jStatus/TestInstantAttributes.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jStatus/TestInstantAttributes.java 2011-11-22
11:58:48 UTC (rev 22971)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jStatus/TestInstantAttributes.java 2011-11-22
12:18:09 UTC (rev 22972)
@@ -33,7 +33,8 @@
import org.jboss.test.selenium.encapsulated.JavaScript;
import org.jboss.test.selenium.request.RequestType;
import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
-import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/**
@@ -49,11 +50,16 @@
return buildUrl(contextPath,
"faces/components/a4jStatus/instantAttributes.xhtml");
}
- @BeforeMethod
+ @BeforeClass
public void setupAttributes() {
statusAttributes.setRequestType(RequestType.XHR);
}
+ @AfterClass
+ public void teardownAttributes() {
+ statusAttributes.setRequestType(RequestType.HTTP);
+ }
+
@Test
@IssueTracking("https://issues.jboss.org/browse/RFPL-1516")
public void testOnStart() {
Show replies by date