buffer.append("protected void ");
if (isJUnit4()) { buffer.append("public"); } else { buffer.append("protected "); } if (isStatic) { buffer.append("static "); } buffer.append("void ");
	private void createSetupStubs(IType type, String methodName, String annotationType, ImportsManager imports) throws CoreException {		String content= null;		IMethod methodTemplate= findInHierarchy(type, methodName);		String annotation= null;		if (isJUnit4()) {			annotation= '@' + imports.addImport(annotationType);		}				GenStubSettings settings= JUnitStubUtility.getCodeGenerationSettings(type.getJavaProject());		settings.createComments= isAddComments();				if (methodTemplate != null) {			settings.callSuper= true;			settings.methodOverwrites= true;			content= JUnitStubUtility.genStub(type.getCompilationUnit(), getTypeName(), methodTemplate, settings, annotation, imports);		} else {			final String delimiter= getLineDelimiter();			StringBuffer buffer= new StringBuffer();			if (settings.createComments) {				String[] excSignature= { Signature.createTypeSignature("java.lang.Exception", true) }; //$NON-NLS-1$				String comment= CodeGeneration.getMethodComment(type.getCompilationUnit(), type.getElementName(), methodName, new String[0], excSignature, Signature.SIG_VOID, null, delimiter);				if (comment != null) {					buffer.append(comment);				}			}			if (annotation != null) {				buffer.append(annotation).append(delimiter);			}						buffer.append("protected void "); //$NON-NLS-1$			buffer.append(methodName);			buffer.append("() throws "); //$NON-NLS-1$			buffer.append(imports.addImport("java.lang.Exception")); //$NON-NLS-1$			buffer.append(" {}"); //$NON-NLS-1$			buffer.append(delimiter);			content= buffer.toString();		}		type.createMethod(content, null, false, null);	}