Lines 896-901
Link Here
|
896 |
} |
896 |
} |
897 |
} |
897 |
} |
898 |
|
898 |
|
|
|
899 |
public void testContainerInitializer19() throws CoreException { |
900 |
try { |
901 |
IJavaProject p = createJavaProject("P"); |
902 |
final StringBuffer paths = new StringBuffer(); |
903 |
DefaultContainerInitializer initializer = new DefaultContainerInitializer(new String[] {"P", "/P/lib.jar"}) { |
904 |
public void initialize(IPath containerPath, IJavaProject project) throws CoreException { |
905 |
paths.append(containerPath); |
906 |
paths.append('\n'); |
907 |
super.initialize(containerPath, project); |
908 |
} |
909 |
}; |
910 |
ContainerInitializer.setInitializer(initializer); |
911 |
|
912 |
setClasspath(p, new IClasspathEntry[] {JavaCore.newContainerEntry(new Path("org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1"))}); |
913 |
setClasspath(p, new IClasspathEntry[] {JavaCore.newContainerEntry(new Path("org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE2"))}); |
914 |
setClasspath(p, new IClasspathEntry[] {JavaCore.newContainerEntry(new Path("org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1"))}); |
915 |
assertStringEquals( |
916 |
"org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1\n" + |
917 |
"org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE2\n" + |
918 |
"org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1\n", |
919 |
paths.toString(), |
920 |
false); |
921 |
} finally { |
922 |
stopDeltas(); |
923 |
deleteProject("P1"); |
924 |
} |
925 |
} |
926 |
|
899 |
public void testVariableInitializer01() throws CoreException { |
927 |
public void testVariableInitializer01() throws CoreException { |
900 |
try { |
928 |
try { |
901 |
createProject("P1"); |
929 |
createProject("P1"); |