Lines 678-683
Link Here
|
678 |
} |
678 |
} |
679 |
} |
679 |
} |
680 |
|
680 |
|
|
|
681 |
public void testContainerInitializer13() throws CoreException { |
682 |
try { |
683 |
IJavaProject p = createJavaProject("P"); |
684 |
final StringBuffer paths = new StringBuffer(); |
685 |
DefaultContainerInitializer initializer = new DefaultContainerInitializer(new String[] {"P", "/P/lib.jar"}) { |
686 |
public void initialize(IPath containerPath, IJavaProject project) throws CoreException { |
687 |
paths.append(containerPath); |
688 |
paths.append('\n'); |
689 |
super.initialize(containerPath, project); |
690 |
} |
691 |
}; |
692 |
ContainerInitializer.setInitializer(initializer); |
693 |
|
694 |
setClasspath(p, new IClasspathEntry[] {JavaCore.newContainerEntry(new Path("org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1"))}); |
695 |
setClasspath(p, new IClasspathEntry[] {JavaCore.newContainerEntry(new Path("org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE2"))}); |
696 |
setClasspath(p, new IClasspathEntry[] {JavaCore.newContainerEntry(new Path("org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1"))}); |
697 |
assertStringEquals( |
698 |
"org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1\n" + |
699 |
"org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE2\n" + |
700 |
"org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1\n", |
701 |
paths.toString(), |
702 |
false); |
703 |
} finally { |
704 |
stopDeltas(); |
705 |
deleteProject("P1"); |
706 |
} |
707 |
} |
708 |
|
681 |
public void testVariableInitializer01() throws CoreException { |
709 |
public void testVariableInitializer01() throws CoreException { |
682 |
try { |
710 |
try { |
683 |
createProject("P1"); |
711 |
createProject("P1"); |