Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 38425 Details for
Bug 136382
[classpath] Discard container if not referenced on classpath
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
136382.txt (text/plain), 2.01 KB, created by
Jerome Lanneluc
on 2006-04-12 13:27:47 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2006-04-12 13:27:47 EDT
Size:
2.01 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/ClasspathInitializerTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathInitializerTests.java,v >retrieving revision 1.37 >diff -u -r1.37 ClasspathInitializerTests.java >--- src/org/eclipse/jdt/core/tests/model/ClasspathInitializerTests.java 29 Mar 2006 04:03:08 -0000 1.37 >+++ src/org/eclipse/jdt/core/tests/model/ClasspathInitializerTests.java 12 Apr 2006 17:18:15 -0000 >@@ -678,6 +678,34 @@ > } > } > >+public void testContainerInitializer13() throws CoreException { >+ try { >+ IJavaProject p = createJavaProject("P"); >+ final StringBuffer paths = new StringBuffer(); >+ DefaultContainerInitializer initializer = new DefaultContainerInitializer(new String[] {"P", "/P/lib.jar"}) { >+ public void initialize(IPath containerPath, IJavaProject project) throws CoreException { >+ paths.append(containerPath); >+ paths.append('\n'); >+ super.initialize(containerPath, project); >+ } >+ }; >+ ContainerInitializer.setInitializer(initializer); >+ >+ setClasspath(p, new IClasspathEntry[] {JavaCore.newContainerEntry(new Path("org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1"))}); >+ setClasspath(p, new IClasspathEntry[] {JavaCore.newContainerEntry(new Path("org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE2"))}); >+ setClasspath(p, new IClasspathEntry[] {JavaCore.newContainerEntry(new Path("org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1"))}); >+ assertStringEquals( >+ "org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1\n" + >+ "org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE2\n" + >+ "org.eclipse.jdt.core.tests.model.TEST_CONTAINER/JRE1\n", >+ paths.toString(), >+ false); >+ } finally { >+ stopDeltas(); >+ deleteProject("P1"); >+ } >+} >+ > public void testVariableInitializer01() throws CoreException { > try { > createProject("P1");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 136382
:
38425
|
71859