public int getGrammarVersion() throws MisconfigurationException {
return IGrammarVersionProvider.GRAMMAR_PYTHON_VERSION_2_7;
}
});
InlineLocalRefactoring refactoring = new InlineLocalRefactoring(info);
NullProgressMonitor monitor = new NullProgressMonitor();
RefactoringStatus result = refactoring.checkAllConditions(monitor);
assertTrue("Refactoring is not ok: " + result.getMessageMatchingSeverity(RefactoringStatus.WARNING),
result.isOK());
Change change = refactoring.createChange(monitor);
change.perform(monitor);
assertEquals(data.result, document.get());
FileUtilsFileBuffer.IN_TESTS = false;