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 11531 Details for
Bug 65234
Inclusion filter not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Regression tests
org.eclipse.jdt.core.tests.model_patch65234.txt (text/plain), 2.90 KB, created by
Jerome Lanneluc
on 2004-06-03 07:42:38 EDT
(
hide
)
Description:
Regression tests
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2004-06-03 07:42:38 EDT
Size:
2.90 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.3 >diff -u -r1.3 InclusionPatternsTests.java >--- src/org/eclipse/jdt/core/tests/model/InclusionPatternsTests.java 18 May 2004 11:38:05 -0000 1.3 >+++ src/org/eclipse/jdt/core/tests/model/InclusionPatternsTests.java 3 Jun 2004 11:39:54 -0000 >@@ -278,6 +278,43 @@ > pkg.getNonJavaResources()); > } > /* >+ * Ensure that creating a file that corresponds to an included compilation unit >+ * in a folder that is not included makes it appear as a child of its package and not as a non-java resource. >+ * (regression test for bug 65234 Inclusion filter not working) >+ */ >+public void testCreateResourceIncludedCompilationUnit2() throws CoreException { >+ setClasspath(new String[] {"/P/src", "p1/p2/p3/A.java"}); >+ createFolder("/P/src/p1/p2/p3"); >+ >+ clearDeltas(); >+ createFile( >+ "/P/src/p1/p2/p3/A.java", >+ "package p1.p2.p3;\n" + >+ "public class A {\n" + >+ "}" >+ ); >+ >+ assertDeltas( >+ "Unexpected deltas", >+ "P[*]: {CHILDREN}\n" + >+ " src[*]: {CHILDREN | CONTENT}\n" + >+ " p1.p2.p3[*]: {CHILDREN}\n" + >+ " A.java[+]: {}\n" + >+ " ResourceDelta(/P/src/p1)[*]" >+ ); >+ >+ IPackageFragment pkg = getPackage("/P/src/p1/p2/p3"); >+ assertSortedElementsEqual( >+ "Unexpected children", >+ "A.java [in p1.p2.p3 [in src [in P]]]", >+ pkg.getChildren()); >+ >+ assertResourcesEqual( >+ "Unexpected non-java resources", >+ "", >+ pkg.getNonJavaResources()); >+} >+/* > * Ensure that creating a folder that corresponds to an included package > * makes it appear as a child of its package fragment root and not as a non-java resource. > */ >@@ -303,6 +340,37 @@ > assertResourcesEqual( > "Unexpected non-java resources", > "", >+ root.getNonJavaResources()); >+} >+/* >+ * Ensure that creating a folder that is included in a folder that is not included >+ * makes it appear as a child of its package fragment root and not as a non-java resource. >+ * (regression test for bug 65234 Inclusion filter not working) >+ */ >+public void testCreateResourceIncludedPackage2() throws CoreException { >+ setClasspath(new String[] {"/P/src", "p1/p2/p3/"}); >+ createFolder("/P/src/p1/p2"); >+ >+ clearDeltas(); >+ createFolder("/P/src/p1/p2/p3"); >+ >+ assertDeltas( >+ "Unexpected deltas", >+ "P[*]: {CHILDREN}\n" + >+ " src[*]: {CHILDREN | CONTENT}\n" + >+ " p1.p2.p3[+]: {}\n" + >+ " ResourceDelta(/P/src/p1)[*]" >+ ); >+ >+ IPackageFragmentRoot root = getPackageFragmentRoot("/P/src"); >+ assertSortedElementsEqual( >+ "Unexpected children", >+ "p1.p2.p3 [in src [in P]]", >+ root.getChildren()); >+ >+ assertResourcesEqual( >+ "Unexpected non-java resources", >+ "p1", > root.getNonJavaResources()); > } > /*
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 65234
:
11530
| 11531