use of org.gradle.integtests.fixtures.executer.ExecutionFailure in project gradle by gradle.
the class ProjectLoadingIntegrationTest method buildFailsWhenSpecifiedSettingsFileIsNotAFile.
@Test
public void buildFailsWhenSpecifiedSettingsFileIsNotAFile() {
TestFile file = testFile("unknown");
ExecutionFailure result = inTestDirectory().usingSettingsFile(file).runWithFailure();
result.assertHasDescription("The specified settings file '" + file + "' does not exist.");
file.createDir();
result = inTestDirectory().usingSettingsFile(file).runWithFailure();
result.assertHasDescription("The specified settings file '" + file + "' is not a file.");
}
Aggregations