Author: akazakov
Date: 2012-05-09 20:06:57 -0400 (Wed, 09 May 2012)
New Revision: 40900
Modified:
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam20XFacetTestSuite230.java
Log:
https://issues.jboss.org/browse/JBIDE-11490 tests for Seam 2.3
Modified:
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam20XFacetTestSuite230.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam20XFacetTestSuite230.java 2012-05-10
00:04:30 UTC (rev 40899)
+++
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam20XFacetTestSuite230.java 2012-05-10
00:06:57 UTC (rev 40900)
@@ -10,9 +10,12 @@
******************************************************************************/
package org.jboss.tools.seam.core.test.project.facet;
+import junit.extensions.TestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
+import org.jboss.tools.test.util.JobUtils;
+
/**
* @author Alexey Kazakov
*
@@ -21,7 +24,29 @@
public static Test suite() {
TestSuite suite = new TestSuite("Seam 2.3.0 tests");
- suite.addTest(new Seam2FacetInstallDelegateTestSetup(new
TestSuite(Seam230FacetInstallDelegateTest.class)));
+ suite.addTest(new Seam23FacetInstallDelegateTestSetup(new
TestSuite(Seam230FacetInstallDelegateTest.class)));
return suite;
}
+
+ public static class Seam23FacetInstallDelegateTestSetup extends TestSetup {
+
+ AbstractSeam2FacetInstallDelegateTest delegate = new
Seam230FacetInstallDelegateTest("Delegate");
+ @Override
+ protected void setUp() throws Exception {
+ delegate.setUp();
+ JobUtils.waitForIdle(50);
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ delegate.tearDown();
+ }
+
+ /**
+ * @param test
+ */
+ public Seam23FacetInstallDelegateTestSetup(Test test) {
+ super(test);
+ }
+ }
}
\ No newline at end of file