Bug 11842 new TestCase not always initialized correctly
It works for CUs but not for classes Test Case: select class Test in the Packages view and create an new TestCase ==> only superclass field is initialized
org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java
createTestMethodStubs(type);
		}
	}
	protected void createConstructor(IType type) throws JavaModelException {
		String constr= "public "+getTypeName()+"(String name) {super(name);}\n\n"; 
		type.createMethod(constr, null, false, null);
		fIndexOfFirstTestMethod++;
	}
	protected void createMain(IType type) throws JavaModelException {
		StringBuffer main= new StringBuffer("public static void main(String[] args) {"); 
		if (fMethodStubsButtons.isSelected(1)) {
			main.append("junit."); 
			switch (fMethodStubsButtons.getComboSelection()) {
				case 0:
					main.append("textui"); 
					break;
				case 1:
					main.append("swingui"); 
					break;
				case 2 :
					main.append("awtui"); 
					break;
				default :
					main.append("textui"); 
					break;
			}
			main.append(".TestRunner.run(" + getTypeName() + ".class);"); 
		}
		main.append("}\n"); 
		type.createMethod(main.toString(), null, false, null);