View | Details | Raw Unified | Return to bug 312204 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/junit/wizards/NewTestCaseWizardPageOne.java (-1 / +16 lines)
Lines 9-14 Link Here
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Sebastian Davids, sdavids@gmx.de - bug 38507
10
 *     Sebastian Davids, sdavids@gmx.de - bug 38507
11
 *     Sebastian Davids, sdavids@gmx.de - 113998 [JUnit] New Test Case Wizard: Class Under Test Dialog -- allow Enums
11
 *     Sebastian Davids, sdavids@gmx.de - 113998 [JUnit] New Test Case Wizard: Class Under Test Dialog -- allow Enums
12
 *     Kris De Volder, kris.de.volder@gmail.com - Allow changing the default superclass in NewTestCaseWizardPageOne - https://bugs.eclipse.org/bugs/show_bug.cgi?id=312204
12
 *******************************************************************************/
13
 *******************************************************************************/
13
package org.eclipse.jdt.junit.wizards;
14
package org.eclipse.jdt.junit.wizards;
14
15
Lines 290-296 Link Here
290
		if (fIsJunit4) {
291
		if (fIsJunit4) {
291
			setSuperClass("java.lang.Object", false); //$NON-NLS-1$
292
			setSuperClass("java.lang.Object", false); //$NON-NLS-1$
292
		} else {
293
		} else {
293
			setSuperClass(JUnitCorePlugin.TEST_SUPERCLASS_NAME, true);
294
			setSuperClass(getJUnit3TestSuperclassName(), true);
294
		}
295
		}
295
		handleFieldChanged(JUNIT4TOGGLE);
296
		handleFieldChanged(JUNIT4TOGGLE);
296
	}
297
	}
Lines 1173-1176 Link Here
1173
		}
1174
		}
1174
	}
1175
	}
1175
1176
1177
	/**
1178
	 * Hook method that is called to determine the name of the superclass set for
1179
	 * a JUnit 3 style test case. By default, the name of the JUnit 3 TestCase class is
1180
	 * returned. Implementors can override this behaviour to return the name of a
1181
	 * subclass instead.
1182
	 *
1183
	 * @return the fully qualified name of a subclass of the JUnit 3 TestCase class. 
1184
	 *
1185
	 * @since 3.2
1186
	 */
1187
	protected String getJUnit3TestSuperclassName() {
1188
		return JUnitCorePlugin.TEST_SUPERCLASS_NAME;
1189
	}
1190
1176
}
1191
}

Return to bug 312204