Skip to content

Commit

Permalink
Fix some assertions
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lacasse <daniel@lacasse.io>
  • Loading branch information
lacasseio committed Jul 10, 2024
1 parent 0e39338 commit fd213dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void disallowChangesToSourceSetProperty() {

BuildResult result = runner.withTasks("verify").buildAndFail();
assertThat(result, hasFailureDescription("A problem occurred configuring root project 'gradle-plugin'."));
assertThat(result, hasFailureCause("The value for property 'sourceSet' is final and cannot be changed any further."));
assertThat(result, hasFailureCause("The value for test suite 'functionalTest' property 'sourceSet' is final and cannot be changed any further."));
}

@Test
Expand All @@ -98,7 +98,7 @@ void disallowChangesToTestedSourceSetProperty() {

BuildResult result = runner.withTasks("verify").buildAndFail();
assertThat(result, hasFailureDescription("A problem occurred configuring root project 'gradle-plugin'."));
assertThat(result, hasFailureCause("The value for property 'testedSourceSet' cannot be changed any further."));
assertThat(result, hasFailureCause("The value for test suite 'functionalTest' property 'testedSourceSet' cannot be changed any further."));
}

@Test
Expand All @@ -112,7 +112,7 @@ void disallowChangesToTestingStrategiesProperty() {

BuildResult result = runner.withTasks("verify").buildAndFail();
assertThat(result, hasFailureDescription("A problem occurred configuring root project 'gradle-plugin'."));
assertThat(result, hasFailureCause("The value for property 'testingStrategies' is final and cannot be changed any further."));
assertThat(result, hasFailureCause("The value for test suite 'functionalTest' property 'testingStrategies' is final and cannot be changed any further."));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void disallowChangesToSourceSetProperty() {

BuildResult result = runner.withTasks("verify").buildAndFail();
assertThat(result, hasFailureDescription("A problem occurred configuring root project 'gradle-plugin'."));
assertThat(result, hasFailureCause("The value for property 'sourceSet' is final and cannot be changed any further."));
assertThat(result, hasFailureCause("The value for test suite 'test' property 'sourceSet' is final and cannot be changed any further."));
}

@Test
Expand All @@ -121,7 +121,7 @@ void disallowChangesToTestedSourceSetProperty() {

BuildResult result = runner.withTasks("verify").buildAndFail();
assertThat(result, hasFailureDescription("A problem occurred configuring root project 'gradle-plugin'."));
assertThat(result, hasFailureCause("The value for property 'testedSourceSet' cannot be changed any further."));
assertThat(result, hasFailureCause("The value for test suite 'test' property 'testedSourceSet' cannot be changed any further."));
}

@Test
Expand All @@ -135,7 +135,7 @@ void disallowChangesToTestingStrategiesProperty() {

BuildResult result = runner.withTasks("verify").buildAndFail();
assertThat(result, hasFailureDescription("A problem occurred configuring root project 'gradle-plugin'."));
assertThat(result, hasFailureCause("The value for property 'testingStrategies' is final and cannot be changed any further."));
assertThat(result, hasFailureCause("The value for test suite 'test' property 'testingStrategies' is final and cannot be changed any further."));
}

@Test
Expand Down

0 comments on commit fd213dd

Please sign in to comment.