Author: lfryc(a)redhat.com
Date: 2009-09-02 08:34:47 -0400 (Wed, 02 Sep 2009)
New Revision: 15438
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/status/StatusTestCase.java
Log:
- refactored StatusTestCase to follow conventions
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/status/StatusTestCase.java
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/status/StatusTestCase.java 2009-09-02
12:27:23 UTC (rev 15437)
+++
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/status/StatusTestCase.java 2009-09-02
12:34:47 UTC (rev 15438)
@@ -27,6 +27,8 @@
import org.jboss.test.selenium.dom.Event;
import org.jboss.test.selenium.waiting.Condition;
import static org.testng.Assert.*;
+
+import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
/**
@@ -34,16 +36,7 @@
* @version $Revision$
*/
public class StatusTestCase extends AbstractSeleniumRichfacesTestCase {
- /**
- * Opens specified page
- */
- private void openPage() {
- selenium.allowNativeXpath("true");
- openComponent("Status");
- openTab("Usage");
- }
-
private final String LOC_FIELDSET_PAGE_PART_PREFORMATTED =
getLoc("FIELDSET_PAGE_PART_PREFORMATTED");
private final String LOC_OUTPUT_STATUS_MESSAGE_PREFORMATTED =
getLoc("OUTPUT_STATUS_MESSAGE_PREFORMATTED");
private final String LOC_BUTTON_REQUEST_PREFORMATTED =
getLoc("BUTTON_REQUEST_PREFORMATTED");
@@ -93,7 +86,6 @@
* version of test (1 or 2)
*/
private void doStatusTesting(final int testNumber) {
- openPage();
scrollIntoView(format(LOC_FIELDSET_PAGE_PART_PREFORMATTED, testNumber), true);
// PAGE COMPONENTS
@@ -138,7 +130,6 @@
*/
@Test
public void testInputsStatus() {
- openPage();
scrollIntoView(format(LOC_FIELDSET_PAGE_PART_PREFORMATTED, 3), true);
// PAGE CONTROLS
@@ -211,4 +202,13 @@
}
});
}
+
+ @SuppressWarnings("unused")
+ @BeforeMethod
+ private void loadPage() {
+ openComponent("Status");
+ openTab("Usage");
+
+ selenium.allowNativeXpath("true");
+ }
}
Show replies by date