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 12466 Details for
Bug 67297
Renaming included package folder throws JME
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
org.eclipse.jdt.core.tests.model_patch67297.txt (text/plain), 2.21 KB, created by
Jerome Lanneluc
on 2004-06-18 07:55:08 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2004-06-18 07:55:08 EDT
Size:
2.21 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/model/InclusionPatternsTests.java >=================================================================== >RCS file: /data/cvs/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/InclusionPatternsTests.java,v >retrieving revision 1.7 >diff -u -r1.7 InclusionPatternsTests.java >--- src/org/eclipse/jdt/core/tests/model/InclusionPatternsTests.java 16 Jun 2004 15:41:08 -0000 1.7 >+++ src/org/eclipse/jdt/core/tests/model/InclusionPatternsTests.java 18 Jun 2004 11:48:54 -0000 >@@ -679,13 +679,50 @@ > } > /* > * Ensure that renaming an included package so that it is not included any longer >- * makes it disappears from thechildren of its package fragment root >+ * makes it disappears from the children of its package fragment root > * and it is added to the non-java resources. > */ >-public void testRenameIncludedPackage() throws CoreException { >+public void testRenameIncludedPackage1() throws CoreException { > setClasspath(new String[] {"/P/src", "p/"}); > IPackageFragmentRoot root = getPackageFragmentRoot("/P/src"); > IPackageFragment pkg = root.createPackageFragment("p", false, null); >+ >+ clearDeltas(); >+ pkg.rename("q", false, null); >+ >+ assertDeltas( >+ "Unexpected deltas", >+ "P[*]: {CHILDREN}\n" + >+ " src[*]: {CHILDREN | CONTENT}\n" + >+ " p[-]: {}\n" + >+ " ResourceDelta(/P/src/q)[+]" >+ ); >+ >+ assertSortedElementsEqual( >+ "Unexpected children", >+ "", >+ root.getChildren()); >+ >+ assertResourcesEqual( >+ "Unexpected non-java resources", >+ "q", >+ root.getNonJavaResources()); >+} >+/* >+ * Ensure that renaming an included package that has compilation units >+ * so that it is not included any longer doesn't throw a JavaModelException. >+ * (regression test for bug 67297 Renaming included package folder throws JME) >+ */ >+public void testRenameIncludedPackage2() throws CoreException { >+ setClasspath(new String[] {"/P/src", "p/"}); >+ IPackageFragmentRoot root = getPackageFragmentRoot("/P/src"); >+ IPackageFragment pkg = root.createPackageFragment("p", false, null); >+ createFile( >+ "/P/src/p/X.java", >+ "package p;\n" + >+ "public class X {\n" + >+ "}" >+ ); > > clearDeltas(); > pkg.rename("q", false, null);
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 67297
:
12465
| 12466