Bug 26247 JUnit: New Test Case wizard does not init dialogs when browsing for test class
Build 20021113 Open the new Test Case wizard Browse for a test class, select a class (e.g. TestCase), press OK Press the browse button again and press OK Previous selection is replaced with first entry in list. This happens because the dialog is not initialized with the current value (in my example TestCase).
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/NewTestCaseCreationWizardPage.java
fTestClassTextInitialValue= ""; 
		
		setTitle(WizardMessages.getString("NewTestClassWizPage.title")); 
		setDescription(WizardMessages.getString("NewTestClassWizPage.description")); 
		
		String[] buttonNames= new String[] {
			"public static void main(Strin&g[] args)", 
			
			WizardMessages.getString("NewTestClassWizPage.methodStub.testRunner"), 
			WizardMessages.getString("NewTestClassWizPage.methodStub.setUp"), 
			WizardMessages.getString("NewTestClassWizPage.methodStub.tearDown") 
		};
		
		fMethodStubsButtons= new MethodStubsSelectionButtonGroup(SWT.CHECK, buttonNames, 1);
		fMethodStubsButtons.setLabelText(WizardMessages.getString("NewTestClassWizPage.method.Stub.label")); 
		fClassToTestStatus= new JUnitStatus();
		fTestClassStatus= new JUnitStatus();
		
		fDefaultClassToTest= ""; 
	}
	
	/**
	 * Should be called from the wizard with the initial selection and the 2nd page of the wizard..
	 */
	public void init(IStructuredSelection selection, NewTestCaseCreationWizardPage2 page2) {
		fPage2= page2;
		IJavaElement element= getInitialJavaElement(selection);
		initContainerPage(element);
		initTypePage(element);
		doStatusUpdate();