Skip to content

Commit ca10398

Browse files
committed
Adjust test to behavioral change in Gradle 9.0
(cherry picked from commit 905a7bb)
1 parent 2890464 commit ca10398

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/GradleMissingEngineTests.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import org.junit.jupiter.api.Test;
2020
import org.junit.jupiter.api.io.TempDir;
21-
import org.junit.platform.reporting.testutil.FileUtils;
2221
import org.junit.platform.tests.process.OutputFiles;
2322
import org.opentest4j.TestAbortedException;
2423

@@ -41,11 +40,8 @@ void gradle_wrapper(@TempDir Path workspace, @FilePrefix("gradle") OutputFiles o
4140
.redirectOutput(outputFiles).startAndWait();
4241

4342
assertEquals(1, result.exitCode());
44-
assertThat(result.stdErrLines()) //
45-
.contains("FAILURE: Build failed with an exception.");
46-
47-
var htmlFile = FileUtils.findPath(workspace, "glob:**/build/reports/tests/test/classes/*.html");
48-
assertThat(htmlFile).content() //
43+
assertThat(result.stdErr()) //
44+
.contains("FAILURE: Build failed with an exception.") //
4945
.contains("Cannot create Launcher without at least one TestEngine");
5046
}
5147
}

0 commit comments

Comments
 (0)