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 12482 Details for
Bug 67789
Java element delta from refresh contains excluded package
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression tests
org.eclipse.jdt.core.tests.model_patch67789.txt (text/plain), 2.75 KB, created by
Jerome Lanneluc
on 2004-06-18 10:36:22 EDT
(
hide
)
Description:
Regression tests
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2004-06-18 10:36:22 EDT
Size:
2.75 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/model/ExclusionPatternsTests.java >=================================================================== >RCS file: /data/cvs/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ExclusionPatternsTests.java,v >retrieving revision 1.25 >diff -u -r1.25 ExclusionPatternsTests.java >--- src/org/eclipse/jdt/core/tests/model/ExclusionPatternsTests.java 18 May 2004 11:49:41 -0000 1.25 >+++ src/org/eclipse/jdt/core/tests/model/ExclusionPatternsTests.java 18 Jun 2004 14:29:42 -0000 >@@ -288,6 +288,36 @@ > root.getNonJavaResources()); > } > /* >+ * Ensure that creating a folder that represents an excluded and included package >+ * have the correct delta, Java elements and non-Java resources. >+ * (regression test for 67789 Java element delta from refresh contains excluded package) >+ */ >+public void testCreateExcludedAndIncludedPackages() throws CoreException { >+ this.setClasspath(new String[] {"/P/src", "p1/p2/"}); >+ IPackageFragmentRoot root = getPackageFragmentRoot("/P/src"); >+ >+ clearDeltas(); >+ createFolder("/P/src/p1/p2"); >+ >+ assertDeltas( >+ "Unexpected deltas", >+ "P[*]: {CHILDREN}\n" + >+ " src[*]: {CHILDREN}\n" + >+ " p1[+]: {}" >+ ); >+ >+ assertSortedElementsEqual( >+ "Unexpected children", >+ "<default> [in src [in P]]\n" + >+ "p1 [in src [in P]]", >+ root.getChildren()); >+ >+ assertResourcesEqual( >+ "Unexpected non-java resources", >+ "p2", >+ root.getPackageFragment("p1").getNonJavaResources()); >+} >+/* > * Ensure that creating a file that corresponds to an excluded compilation unit > * doesn't make it appear as a child of its package but it is a non-java resource. > */ >@@ -671,6 +701,37 @@ > "src/p/A.java p.A [A]", > resultCollector.toString()); > } >+/* >+ * Ensure that removing a folder that represents an excluded and included package >+ * have the correct delta, Java elements and non-Java resources. >+ * (regression test for 67789 Java element delta from refresh contains excluded package) >+ */ >+public void testRemoveExcludedAndIncludedPackages() throws CoreException { >+ this.setClasspath(new String[] {"/P/src", "p1/p2/"}); >+ IPackageFragmentRoot root = getPackageFragmentRoot("/P/src"); >+ createFolder("/P/src/p1/p2"); >+ >+ clearDeltas(); >+ deleteFolder("/P/src/p1"); >+ >+ assertDeltas( >+ "Unexpected deltas", >+ "P[*]: {CHILDREN}\n" + >+ " src[*]: {CHILDREN}\n" + >+ " p1[-]: {}" >+ ); >+ >+ assertSortedElementsEqual( >+ "Unexpected children", >+ "<default> [in src [in P]]", >+ root.getChildren()); >+ >+ assertResourcesEqual( >+ "Unexpected non-java resources", >+ "", >+ root.getNonJavaResources()); >+} >+ > /* > * Ensure that renaming a folder that corresponds to an excluded package > * so that it is not excluded any longer
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 67789
:
12481
| 12482 |
12558