[198338] quick fix to fix build path of utility project introduces build errors
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyValidationTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyValidationTests.java index 899672d..85a272d 100644 --- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyValidationTests.java +++ b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyValidationTests.java
@@ -170,15 +170,11 @@ ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject); ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, entryPaths); - ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp); + final Set archiveNames = Collections.singleton(ClasspathDependencyTestUtil.TEST3_JAR); + ClasspathDependencyTestUtil.verifyClasspathDependencies(comp, archiveNames); DependencyUtil.waitForValidationJobs(project); - ClasspathDependencyTestUtil.verifyClasspathDependencyError(project); - - UpdateClasspathAttributeUtil.removeDependencyAttribute(null, project.getName(), entry); - - DependencyUtil.waitForValidationJobs(project); - ClasspathDependencyTestUtil.verifyNoClasspathDependencyError(project); + ClasspathDependencyTestUtil.verifyClasspathDependencyMarker(project); } //DuplicateArchiveName=Invalid classpath component dependency {0}. The project contains another classpath component dependency the same archive name. @@ -262,7 +258,7 @@ UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), entry); DependencyUtil.waitForValidationJobs(project); - ClasspathDependencyTestUtil.verifyClasspathDependencyError(project); + ClasspathDependencyTestUtil.verifyClasspathDependencyMarker(project); ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject); ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, entryPaths); @@ -272,8 +268,6 @@ UpdateClasspathAttributeUtil.removeDependencyAttribute(null, project.getName(), entry); ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject); - DependencyUtil.waitForValidationJobs(project); - ClasspathDependencyTestUtil.verifyNoClasspathDependencyError(project); } //EarLibrariesContainer=Invalid classpath component dependency {0}. The EAR Libraries classpath container cannot be exposed.