use of org.infernus.idea.checkstyle.checker.CheckStyleChecker in project checkstyle-idea by jshiell.
the class VersionMixExceptionTest method testSunnyDay.
/**
* Test that everything works fine even when class loaders change, provided that
* {@link org.infernus.idea.checkstyle.csapi.CheckstyleInternalObject CheckstyleInternalObject}s associated with
* the expired class loaders are recreated.
*/
public void testSunnyDay() throws IOException, URISyntaxException {
Module module = mock(Module.class);
when(module.getProject()).thenReturn(project);
CheckStyleChecker checker = createChecker(module);
runChecker(checker);
try {
assertNotEquals(OTHER_VERSION, BASE_VERSION);
csService.activateCheckstyleVersion(OTHER_VERSION, null);
checker = createChecker(module);
runChecker(checker);
} finally {
csService.activateCheckstyleVersion(BASE_VERSION, null);
}
}
Aggregations