use of com.python.pydev.analysis.refactoring.wizards.IRefactorRenameProcess in project Pydev by fabioz.
the class RefactoringRenameTestBase method checkProcessors.
/**
* Checks if the refactor processes are all of the type we're testing here.
*/
protected void checkProcessors() {
if (lastProcessorUsed != null) {
List<IRefactorRenameProcess> processes = lastProcessorUsed.getAllProcesses();
assertEquals(1, processes.size());
Class processUnderTest = getProcessUnderTest();
if (processUnderTest != null) {
for (IRefactorRenameProcess p : processes) {
assertTrue(StringUtils.format("Expected %s. Received:%s", processUnderTest, p.getClass()), // we should only activate the rename class process in this test case
processUnderTest.isInstance(p));
}
}
}
}
Aggregations