File tree Expand file tree Collapse file tree
plugin-gradle/src/test/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818import java .io .IOException ;
1919
20- import org .assertj .core .api .Assertions ;
2120import org .gradle .testkit .runner .GradleRunner ;
2221import org .junit .jupiter .api .Test ;
2322
@@ -85,7 +84,7 @@ void noRootIsSupported() throws IOException {
8584 }
8685
8786 @ Test
88- void predeclaredIsUnsupported () throws IOException {
87+ void predeclaredIsSupported () throws IOException {
8988 setFile ("build.gradle" ).toLines (
9089 "plugins {" ,
9190 " id 'com.diffplug.spotless'" ,
@@ -96,7 +95,6 @@ void predeclaredIsUnsupported() throws IOException {
9695 " kotlin { ktlint() }" ,
9796 "}" );
9897 createNSubprojects ();
99- Assertions .assertThat (gradleRunner ().withArguments ("spotlessApply" ).buildAndFail ().getOutput ())
100- .containsAnyOf ("Cannot access project" , "cannot access 'Project.tasks'" );
98+ gradleRunner ().withArguments ("spotlessApply" ).build ();
10199 }
102100}
You can’t perform that action at this time.
0 commit comments