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 39680 Details for
Bug 138672
Bad code completion formatting for Collections.synchronizedMap
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_138672_tests.txt (text/plain), 2.49 KB, created by
Olivier Thomann
on 2006-04-27 11:40:10 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-04-27 11:40:10 EDT
Size:
2.49 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/AttachedJavadocTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AttachedJavadocTests.java,v >retrieving revision 1.23 >diff -u -r1.23 AttachedJavadocTests.java >--- src/org/eclipse/jdt/core/tests/model/AttachedJavadocTests.java 26 Apr 2006 14:40:52 -0000 1.23 >+++ src/org/eclipse/jdt/core/tests/model/AttachedJavadocTests.java 27 Apr 2006 15:40:49 -0000 >@@ -386,7 +386,7 @@ > > // https://bugs.eclipse.org/bugs/show_bug.cgi?id=138167 > public void test018() throws JavaModelException { >- IPackageFragment packageFragment = this.root.getPackageFragment("p1/p2"); //$NON-NLS-1$ >+ IPackageFragment packageFragment = this.root.getPackageFragment("p1/p2/p3"); //$NON-NLS-1$ > assertNotNull("Should not be null", packageFragment); //$NON-NLS-1$ > IClassFile classFile = packageFragment.getClassFile("C.class"); //$NON-NLS-1$ > assertNotNull(classFile); >@@ -397,7 +397,27 @@ > IMethod method = methods[i]; > String javadoc = method.getAttachedJavadoc(monitor); > assertNotNull("Should have a javadoc", javadoc); >- assertTrue("Wrong doc", javadoc.indexOf(method.getElementName()) != -1); >+ final String selector = method.getElementName(); >+ assertTrue("Wrong doc", javadoc.indexOf(selector) != -1); > } > } >+ >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=138167 >+ public void test019() throws JavaModelException { >+ IPackageFragment packageFragment = this.root.getPackageFragment("p1/p2/p3"); //$NON-NLS-1$ >+ assertNotNull("Should not be null", packageFragment); //$NON-NLS-1$ >+ IClassFile classFile = packageFragment.getClassFile("C.class"); //$NON-NLS-1$ >+ assertNotNull(classFile); >+ IType type = classFile.getType(); >+ IMethod method = type.getMethod("bar5", new String[] {"Ljava.util.Map<TK;TV;>;", "I", "Ljava.util.Map<TK;TV;>;"}); //$NON-NLS-1$ >+ assertTrue(method.exists()); >+ String javadoc = method.getAttachedJavadoc(new NullProgressMonitor()); //$NON-NLS-1$ >+ assertNotNull("Should have a javadoc", javadoc); //$NON-NLS-1$ >+ String[] names = method.getParameterNames(); >+ assertNotNull("No names", names); >+ assertEquals("Wrong size", 3, names.length); >+ assertEquals("Wrong parameter name", "m", names[0]); >+ assertEquals("Wrong parameter name", "j", names[1]); >+ assertEquals("Wrong parameter name", "m2", names[2]); >+ } > }
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 138672
:
39679
| 39680