Author: scabanovich
Date: 2010-09-30 07:15:10 -0400 (Thu, 30 Sep 2010)
New Revision: 25321
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/CyclicDependingProjectsTest.java
Log:
JBIDE-6535
https://jira.jboss.org/browse/JBIDE-6535
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/CyclicDependingProjectsTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/CyclicDependingProjectsTest.java 2010-09-30
09:34:45 UTC (rev 25320)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/CyclicDependingProjectsTest.java 2010-09-30
11:15:10 UTC (rev 25321)
@@ -19,6 +19,7 @@
import org.jboss.tools.seam.internal.core.SeamProject;
import org.jboss.tools.test.util.JUnitUtils;
import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
import org.jboss.tools.test.util.TestProjectProvider;
/**
@@ -40,23 +41,29 @@
provider2 = new TestProjectProvider(BUNDLE,"/projects/CycleTest2" ,
"CycleTest2", true);
project2 = provider1.getProject();
+ boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
JobUtils.waitForIdle();
+
//To ensure that the project is built.
project1.build(IncrementalProjectBuilder.CLEAN_BUILD, new NullProgressMonitor());
project2.build(IncrementalProjectBuilder.CLEAN_BUILD, new NullProgressMonitor());
- JobUtils.waitForIdle();
+
+ project1.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
+ project2.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
+
+ ResourcesUtils.setBuildAutomatically(saveAutoBuild);
}
public void testCyclicDependingProjects() {
ISeamProject sp1 = getSeamProject1();
- assertNotNull(sp1.getComponent("test.bean1"));
- assertNotNull(sp1.getComponent("test.bean1"));
+ assertNotNull("Bean test.bean1 is not found in project CycleTest1",
sp1.getComponent("test.bean1"));
+ assertNotNull("Bean test.bean2 is not found in project CycleTest1",
sp1.getComponent("test.bean2"));
ISeamProject sp2 = getSeamProject2();
- assertNotNull(sp2.getComponent("test.bean1"));
- assertNotNull(sp2.getComponent("test.bean1"));
+ assertNotNull("Bean test.bean1 is not found in project CycleTest2",
sp2.getComponent("test.bean1"));
+ assertNotNull("Bean test.bean2 is not found in project CycleTest2",
sp2.getComponent("test.bean2"));
}