for (String path : sourceDirs) {
File sourceFolder = getFileFromPath(path, baseDir);
if (!sourceFolder.isDirectory()) {
- throw new RunnerException("The source folder '" + path + "' does not exist for '" + projectKey +
- "' project/module (base directory = " + baseDir.getAbsolutePath() + ")");
+ throw new RunnerException("The folder '" + path + "' does not exist for '" + projectKey +
+ "' project (base directory = " + baseDir.getAbsolutePath() + ")");
}
}
@Test
public void shouldFailIfUnexistingSourceDirectory() throws IOException {
thrown.expect(RunnerException.class);
- thrown.expectMessage("The source folder 'unexisting-source-dir' does not exist for 'com.foo.project' project/module (base directory = "
+ thrown.expectMessage("The folder 'unexisting-source-dir' does not exist for 'com.foo.project' project (base directory = "
+ TestUtils.getResource(this.getClass(), "simple-project-with-unexisting-source-dir") + ")");
loadProjectDefinition("simple-project-with-unexisting-source-dir");