Author: akazakov
Date: 2010-10-20 01:15:50 -0400 (Wed, 20 Oct 2010)
New Revision: 25926
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam2FacetInstallDelegateTest.java
Log:
https://jira.jboss.org/browse/JBIDE-7358 Fixed Seam tests
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam2FacetInstallDelegateTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam2FacetInstallDelegateTest.java 2010-10-19
23:02:55 UTC (rev 25925)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam2FacetInstallDelegateTest.java 2010-10-20
05:15:50 UTC (rev 25926)
@@ -337,14 +337,9 @@
testProject.findMember("embedded-ejb"));
}
- public void testTestLibs() throws CoreException, IOException {
+ protected Set<String> getTestLibs() {
+ Set<String> libs = new HashSet<String>();
- SeamProjectsSet warPs = new SeamProjectsSet(warProject.getProject());
-
- IProject testProject = warPs.getTestProject();
- assertTrue(testProject.exists());
-
- Set<String> libs = new HashSet<String>();
libs.add("testng.jar");
libs.add("hibernate-all.jar");
// libs.add("jboss-deployers.jar"); // JBIDE-2431: There is no such jar
@@ -354,6 +349,17 @@
libs.add("jboss-embedded-api.jar");
libs.add("core.jar");
+ return libs;
+ }
+
+ public void testTestLibs() throws CoreException, IOException {
+ SeamProjectsSet warPs = new SeamProjectsSet(warProject.getProject());
+
+ IProject testProject = warPs.getTestProject();
+ assertTrue(testProject.exists());
+
+ Set<String> libs = getTestLibs();
+
assertOnlyContainsTheseFiles(libs, testProject.findMember("lib"));
// JBIDE-2431: The following block is commented because it duplicates