Author: dgolovin
Date: 2007-11-08 21:02:21 -0500 (Thu, 08 Nov 2007)
New Revision: 4804
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java
Log:
Project with test pages now imported only once before all tests
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java 2007-11-08
23:49:50 UTC (rev 4803)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java 2007-11-09
02:02:21 UTC (rev 4804)
@@ -53,14 +53,19 @@
*/
protected void setUp() throws Exception {
super.setUp();
+
+ // TODO: Use TestSetup to create and remove project once for all tests
+ // not for every one
+ if(ResourcesPlugin.getWorkspace().getRoot().findMember("RichFacesTest")==null)
{
- ImportRichFacesComponents.importRichFacesPages(RichFacesTestPlugin
- .getPluginResourcePath() + TEST_PROJECT_JAR_PATH);
-
- waitForJobs();
+ ImportRichFacesComponents.importRichFacesPages(RichFacesTestPlugin
+ .getPluginResourcePath() + TEST_PROJECT_JAR_PATH);
+
+ waitForJobs();
+ waitForJobs();
+ delay(5000);
+ }
Platform.addLogListener(this);
- waitForJobs();
- delay(5000);
}
/**
@@ -72,8 +77,8 @@
*/
protected void tearDown() throws Exception {
super.tearDown();
- ImportRichFacesComponents.removeProject();
- waitForJobs();
+// ImportRichFacesComponents.removeProject();
+// waitForJobs();
Platform.removeLogListener(this);
}
Show replies by date