[156415] fix for IWebModule.getModules to return only web lib modules
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/WebDeployTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/WebDeployTest.java index 831074e..baf6aa9 100644 --- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/WebDeployTest.java +++ b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/WebDeployTest.java
@@ -69,17 +69,15 @@ } } } - //assertTrue(verified==3); -// get child modules on the deployable - that should return the utility module that was in the ear - it should have only testdeployutil jar - //Hari: need to make sure we need to be looking for the ear project - + // get child modules on the deployable should return the utility modules which are not + // on the manifest but web lib projects + IModule[] childModules = deployable.getChildModules(); // TODO temporary remove assert, possible linux issue, investigate //assertTrue(childModules.length==3); for (int l = 0; l < childModules.length; l++){ - //Hari: need to check to see these are the right modules to check for - assertTrue(childModules[l].getName().equals("TestDeployUtil") || childModules[l].getName().equals("lib/TestDeploy/customerEjb.jar") || childModules[l].getName().equals("TestWebLibProject")); + assertTrue(childModules[l].getName().equals("TestWebLibProject")); } } catch (CoreException e) {