Community
Participate
Working Groups
Build Identifier: 20100506-2000 Groovy Eclipse is subclassing from NewTestCaseWizardPageOne to create JUnit wizard for Groovy. It is hard to change the default superclass used for a JUnit3 style testcase. Using setSuperClass doesn't quite work because there is a call to a private method "internalSetJUnit4" which will reset it when a user clicks the JUnit radio buttons. I've attached a patch with a proposed solution that makes a minimal change NewTestCaseWizardPageOne class. The change is behavior preserving, but it delegates the choice of the default superclass for JUnit 3 tests to a protected method which can easily be overriden. Reproducible: Always Steps to Reproduce: NA
Created attachment 167657 [details] A patch against version checked out from HEAD on Sun May 9th, 2010.
Looks good, but unfortunately, we're past the API freeze for 3.6. Could you please attach a new patch with these changes for 3.7? - fix Javadoc: add @since 3.7, add @return, use wording that is more similar to other Javadocs (i.e. "Clients can override [to]..."). - fill out this template and add it to the header comment: Your Name <email@example.com> - Bug Title - https://bugs.eclipse.org/BUG_NUMBER
Created attachment 167737 [details] Update patch, better commenting / JavaDocs
Created attachment 167740 [details] Updated patch, better comments / JavaDoc Oops my "167737" patch file had a little mistake.
Thanks for the patch, fixed in HEAD.
*** Bug 188983 has been marked as a duplicate of this bug. ***