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
} else {
			tearDown="/**\n * Tears down the fixture, for example, close a network connection.\n * This method is called after a test is executed.\n * @throws Exception\n */\n" + 
				"protected void "+TEARDOWN+"() throws Exception {}\n\n"; 
		}				
		type.createMethod(tearDown, null, false, null);	
		fIndexOfFirstTestMethod++;
	}
	protected void createTestMethodStubs(IType type) throws JavaModelException {
		IMethod[] methods= fPage2.getCheckedMethods();
		if (methods.length > 0) {
			
			ArrayList allMethods= new ArrayList();
			IMethod[] allMethodsArray= fPage2.getAllMethods();
			for (int i= 0; i < allMethodsArray.length; i++) {
				allMethods.add(allMethodsArray[i]);
			}
			ArrayList overloadedMethods= new ArrayList();
			for (int i= 0; i < allMethods.size(); i++) {
				IMethod current= (IMethod) allMethods.get(i);
				String currentName= current.getElementName();
				boolean currentAdded= false;
				for (ListIterator iter= allMethods.listIterator(i+1); iter.hasNext(); ) {
					IMethod iterMethod= (IMethod) iter.next();
					if (iterMethod.getElementName().equals(currentName)) {
						
						if (!currentAdded) {
							overloadedMethods.add(current);
							currentAdded= true;
						}
						overloadedMethods.add(iterMethod);