Lines 2687-2693
Link Here
|
2687 |
* Ensures that a marker is removed if adding an internal jar that is on the classpath in another project |
2687 |
* Ensures that a marker is removed if adding an internal jar that is on the classpath in another project |
2688 |
* (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=213723 ) |
2688 |
* (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=213723 ) |
2689 |
*/ |
2689 |
*/ |
2690 |
public void testFixClasspath() throws CoreException { |
2690 |
public void testFixClasspath1() throws CoreException { |
2691 |
try { |
2691 |
try { |
2692 |
createProject("P1"); |
2692 |
createProject("P1"); |
2693 |
IJavaProject project = createJavaProject("P2", new String[0], new String[] {"/P1/lib.jar"}, "bin"); |
2693 |
IJavaProject project = createJavaProject("P2", new String[0], new String[] {"/P1/lib.jar"}, "bin"); |
Lines 2703-2708
Link Here
|
2703 |
deleteProject("P2"); |
2703 |
deleteProject("P2"); |
2704 |
} |
2704 |
} |
2705 |
} |
2705 |
} |
|
|
2706 |
/* |
2707 |
* Ensures that a marker is removed if adding an external jar, restarting and refreshing |
2708 |
* (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=216446 ) |
2709 |
*/ |
2710 |
public void testFixClasspath2() throws CoreException { |
2711 |
try { |
2712 |
IJavaProject p = createJavaProject("P", new String[0], new String[] {getExternalResourcePath("externalLib.abc")}, ""); |
2713 |
waitForAutoBuild(); // 1 marker |
2714 |
createExternalFile("externalLib.abc", ""); |
2715 |
|
2716 |
simulateExitRestart(); |
2717 |
refreshExternalArchives(p); |
2718 |
|
2719 |
assertMarkers("Unexpected markers", "", p); |
2720 |
} finally { |
2721 |
deleteExternalResource("externalLib.abc"); |
2722 |
deleteProject("P"); |
2723 |
} |
2724 |
} |
2706 |
/** |
2725 |
/** |
2707 |
* Test IJavaProject.hasClasspathCycle(IClasspathEntry[]). |
2726 |
* Test IJavaProject.hasClasspathCycle(IClasspathEntry[]). |
2708 |
*/ |
2727 |
*/ |