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 167657 Details for
Bug 312204
[api][JUnit] Allow changing the default superclass in NewTestCaseWizardPageOne
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
A patch against version checked out from HEAD on Sun May 9th, 2010.
org.eclipse.jdt.junit.patch (text/plain), 1.23 KB, created by
Kris De Volder
on 2010-05-10 00:56:07 EDT
(
hide
)
Description:
A patch against version checked out from HEAD on Sun May 9th, 2010.
Filename:
MIME Type:
Creator:
Kris De Volder
Created:
2010-05-10 00:56:07 EDT
Size:
1.23 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.junit >Index: src/org/eclipse/jdt/junit/wizards/NewTestCaseWizardPageOne.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseWizardPageOne.java,v >retrieving revision 1.33 >diff -u -r1.33 NewTestCaseWizardPageOne.java >--- src/org/eclipse/jdt/junit/wizards/NewTestCaseWizardPageOne.java 25 Jan 2010 10:57:57 -0000 1.33 >+++ src/org/eclipse/jdt/junit/wizards/NewTestCaseWizardPageOne.java 10 May 2010 04:54:08 -0000 >@@ -290,7 +290,7 @@ > if (fIsJunit4) { > setSuperClass("java.lang.Object", false); //$NON-NLS-1$ > } else { >- setSuperClass(JUnitCorePlugin.TEST_SUPERCLASS_NAME, true); >+ setSuperClass(getJUnit3TestSuperclassName(), true); > } > handleFieldChanged(JUNIT4TOGGLE); > } >@@ -1173,4 +1173,13 @@ > } > } > >+ /** >+ * Override this method to change the name of the super class used for JUnit3 style testcases. >+ * Default implementation returns the JUnit3 TestCase class. It is potentially useful to >+ * return a subclass of the JUnit3 TestCase class as well. >+ */ >+ protected String getJUnit3TestSuperclassName() { >+ return JUnitCorePlugin.TEST_SUPERCLASS_NAME; >+ } >+ > }
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 312204
:
167657
|
167737
|
167740