int res= isJUnitProblem(context, locations); if (res != 0) { ArrayList proposals= new ArrayList(1); IJavaProject javaProject= context.getCompilationUnit().getJavaProject(); if (JUnitStubUtility.is50OrHigher(javaProject) && ((res & JUNIT4) != 0)) { proposals.add(new JUnitAddLibraryProposal(true, context, 10));
ArrayList res= null; for (int i= 0; i < locations.length; i++) { IProblemLocation problem= locations[i]; int id= problem.getProblemId(); if (IProblem.UndefinedType == id || IProblem.ImportNotFound == id) { res= getAddJUnitToBuildPathProposals(context, problem, res); } else if (id == IProblem.UndefinedMethod) { res= getAddAssertImportProposals(context, problem, res);
	public IJavaCompletionProposal[] getCorrections(final IInvocationContext context, IProblemLocation[] locations)  {		int res= isJUnitProblem(context, locations);		if (res != 0) {			ArrayList proposals= new ArrayList(1);			IJavaProject javaProject= context.getCompilationUnit().getJavaProject();			if (JUnitStubUtility.is50OrHigher(javaProject) && ((res & JUNIT4) != 0)) {				proposals.add(new JUnitAddLibraryProposal(true, context, 10));			}			if ((res & JUNIT3) != 0) {				proposals.add(new JUnitAddLibraryProposal(false, context, 8));			}			return (IJavaCompletionProposal[]) proposals.toArray(new IJavaCompletionProposal[proposals.size()]);		}		return null;	}