Author: akazakov
Date: 2012-05-10 20:50:41 -0400 (Thu, 10 May 2012)
New Revision: 40940
Modified:
trunk/seam/tests/org.jboss.tools.seam.base.test/src/org/jboss/tools/seam/core/test/project/facet/AbstractSeam2FacetInstallDelegateTest.java
Log:
https://issues.jboss.org/browse/JBIDE-11490 tests for Seam 2.3
Modified:
trunk/seam/tests/org.jboss.tools.seam.base.test/src/org/jboss/tools/seam/core/test/project/facet/AbstractSeam2FacetInstallDelegateTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.base.test/src/org/jboss/tools/seam/core/test/project/facet/AbstractSeam2FacetInstallDelegateTest.java 2012-05-11
00:46:14 UTC (rev 40939)
+++
trunk/seam/tests/org.jboss.tools.seam.base.test/src/org/jboss/tools/seam/core/test/project/facet/AbstractSeam2FacetInstallDelegateTest.java 2012-05-11
00:50:41 UTC (rev 40940)
@@ -262,6 +262,10 @@
return true;
}
+ protected boolean checkTestProject() {
+ return true;
+ }
+
protected void checkEarLibrariesInSeamProject(int caseNumber, String earName) throws
CoreException{
IDataModel earModel = createSeamDataModel("ear");
@@ -291,7 +295,7 @@
SeamProjectsSet seamProjectsSet = new SeamProjectsSet(war);
assertTrue(seamProjectsSet.getWarProject().exists());
- assertTrue(seamProjectsSet.getTestProject().exists());
+ assertTrue(!checkTestProject() || seamProjectsSet.getTestProject().exists());
assertTrue(seamProjectsSet.getEjbProject().exists());
assertTrue(seamProjectsSet.getEarProject().exists());
@@ -350,8 +354,10 @@
assertOnlyContainsTheseFiles(onlyInEar, earLibs);
assertOnlyContainsTheseFiles(onlyInWar, warLibs);
-
- assertOnlyContainsTheseFiles(onlyInTest, testLibs);
+
+ if(checkTestProject()) {
+ assertOnlyContainsTheseFiles(onlyInTest, testLibs);
+ }
}else{
assertContainsNoneOfTheseFiles(onlyInEjbSrc, ejbSrc);
@@ -362,8 +368,10 @@
assertContainsNoneOfTheseFiles(onlyInEar, earLibs);
assertContainsNoneOfTheseFiles(onlyInWar, warLibs);
-
- assertContainsNoneOfTheseFiles(onlyInTest, testLibs);
+
+ if(checkTestProject()) {
+ assertContainsNoneOfTheseFiles(onlyInTest, testLibs);
+ }
}
}