Author: akazakov
Date: 2012-05-10 20:08:22 -0400 (Thu, 10 May 2012)
New Revision: 40933
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/Seam230FacetInstallDelegateTest.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
23:23:22 UTC (rev 40932)
+++
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam20XFacetTestSuite230.java 2012-05-11
00:08:22 UTC (rev 40933)
@@ -30,7 +30,7 @@
public static class Seam23FacetInstallDelegateTestSetup extends TestSetup {
- Seam230FacetInstallDelegateTest delegate = new
Seam230FacetInstallDelegateTest("Delegate");
+ AbstractSeam2FacetInstallDelegateTest delegate = new
Seam230FacetInstallDelegateTest("Delegate");
@Override
protected void setUp() throws Exception {
delegate.setUp();
Modified:
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam230FacetInstallDelegateTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam230FacetInstallDelegateTest.java 2012-05-10
23:23:22 UTC (rev 40932)
+++
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam230FacetInstallDelegateTest.java 2012-05-11
00:08:22 UTC (rev 40933)
@@ -79,11 +79,20 @@
return dataModel;
}
- private static Set<String> convertToStrings(AntCopyUtils.FileSet fileSet) {
+ private Set<String> convertToStrings(AntCopyUtils.FileSet fileSet) {
Set<String> seamgenlibs = new HashSet<String>();
+ String libDir = seamRuntime.getLibDir();
+ File libDirFile = new File(libDir);
+ assertTrue(libDirFile.exists());
List<Pattern> list = fileSet.getIncluded();
for (Pattern pattern : list) {
- seamgenlibs.add(pattern.pattern());
+ String jarName = pattern.pattern();
+ File jarFile = new File(libDirFile, jarName);
+ if(jarFile.exists()) {
+ seamgenlibs.add(jarName);
+ } else {
+ System.out.println("WARNING: " + jarName + " jar is mentioned in
deploy-*.list file but does not exist in " + libDir);
+ }
}
return seamgenlibs;
}