Skip to content

Commit 55c0c5c

Browse files
committed
fix: IsolatedProjectTest.predeclaredIsUnsupported() is now actually supported with the fix
1 parent 47489af commit 55c0c5c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/IsolatedProjectTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import java.io.IOException;
1919

20-
import org.assertj.core.api.Assertions;
2120
import org.gradle.testkit.runner.GradleRunner;
2221
import 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
}

0 commit comments

Comments
 (0)