setUp= "/**\n * Sets up the fixture, for example, open a network connection.\n * This method is called before a test is executed.\n * @throws Exception\n */\n"; setUp+= "protected void "+SETUP+"() throws Exception {}\n\n";
setUp= "/**" + getLineDelimiter() + " * Sets up the fixture, for example, open a network connection." + getLineDelimiter() + " * This method is called before a test is executed." + getLineDelimiter() + " * @throws Exception" + getLineDelimiter() + " */" + getLineDelimiter(); setUp+= "protected void "+SETUP+"() throws Exception {}" + getLineDelimiter() + getLineDelimiter();
	protected void createSetUp(IType type, ImportsManager imports) throws JavaModelException {		ITypeHierarchy typeHierarchy= null;		IType[] superTypes= null;		String setUp= ""; //$NON-NLS-1$		IMethod methodTemplate= null;		if (type.exists()) {			typeHierarchy= type.newSupertypeHierarchy(null);			superTypes= typeHierarchy.getAllSuperclasses(type);			for (int i= 0; i < superTypes.length; i++) {				if (superTypes[i].exists()) {					IMethod testMethod= superTypes[i].getMethod(SETUP, new String[] {});					if (testMethod.exists()) {						methodTemplate= testMethod;						break;					}				}			}		}		CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();		if (methodTemplate != null) {			GenStubSettings genStubSettings= new GenStubSettings(settings);			genStubSettings.fCallSuper= true;							genStubSettings.fMethodOverwrites= true;			setUp= JUnitStubUtility.genStub(getTypeName(), methodTemplate, genStubSettings, imports);		} else {			if (settings.createComments)				setUp= "/**\n * Sets up the fixture, for example, open a network connection.\n * This method is called before a test is executed.\n * @throws Exception\n */\n"; //$NON-NLS-1$			setUp+= "protected void "+SETUP+"() throws Exception {}\n\n"; //$NON-NLS-1$ //$NON-NLS-2$		}		type.createMethod(setUp, null, false, null);			fIndexOfFirstTestMethod++;	}