use of org.infernus.idea.checkstyle.service.StringConfigurationLocation in project checkstyle-idea by jshiell.
the class OpCreateCheckerTest method testCreateCheckerWithConfigsMock.
@Test
public void testCreateCheckerWithConfigsMock() throws IOException, URISyntaxException {
final ConfigurationLocation configLoc = new StringConfigurationLocation(FileUtil.readFile("cmd/" + CONFIG_FILE), mock(Project.class));
final CheckStyleChecker checker = new CheckstyleActionsImpl(PROJECT, checkstyleProjectServiceMock).createChecker(moduleMock, configLoc, emptyMap(), configurationsMock, getClass().getClassLoader());
assertNotNull(checker);
}
use of org.infernus.idea.checkstyle.service.StringConfigurationLocation in project checkstyle-idea by jshiell.
the class OpCreateCheckerTest method testCreateChecker_noModule.
@Test
public void testCreateChecker_noModule() throws IOException, URISyntaxException {
final ConfigurationLocation configLoc = new StringConfigurationLocation(FileUtil.readFile("cmd/" + CONFIG_FILE), mock(Project.class));
// noinspection ConstantConditions
CheckStyleChecker checker = new CheckstyleActionsImpl(PROJECT, checkstyleProjectServiceMock).createChecker(null, configLoc, emptyMap(), configurationsMock, getClass().getClassLoader());
assertNotNull(checker);
}
Aggregations