RefactoringStatus result= performRefactoring(ref); assertEquals("precondition was supposed to pass", null, result);
RefactoringStatus preconditionResult= ref.checkPreconditions(new NullProgressMonitor()); if (preconditionResult.isOK()) preconditionResult= null; assertEquals("precondition was supposed to pass", null, preconditionResult);
	private void passHelper(int startLine, int startColumn, int endLine, int endColumn, 						  String newName,						  boolean declareStatic,						  boolean declareFinal,						  int initializeIn,						  int accessModifier) throws Exception{						  			ICompilationUnit cu= createCUfromTestFile(getPackageP(), true, true);						  			ISourceRange selection= TextRangeUtil.getSelection(cu, startLine, startColumn, endLine, endColumn);        PromoteTempToFieldRefactoring ref= getRefactoringObject(selection, cu, newName, declareStatic, declareFinal, initializeIn, accessModifier);				RefactoringStatus result= performRefactoring(ref);		assertEquals("precondition was supposed to pass", null, result);				IPackageFragment pack= (IPackageFragment)cu.getParent();		String newCuName= getSimpleTestFileName(true, true);		ICompilationUnit newcu= pack.getCompilationUnit(newCuName);		assertTrue(newCuName + " does not exist", newcu.exists());		assertEquals("incorrect changes", getFileContents(getTestFileName(true, false)), newcu.getSource());		//AbstractCUTestCase.compareSource(newcu.getSource(), getFileContents(getTestFileName(true, false)));	}