File tree Expand file tree Collapse file tree 3 files changed +27
-8
lines changed
samples/use-only-java-module-testing-plugin
build-logic/src/main/kotlin
lib/src/integtest/java/org/my/lib/integtest Expand file tree Collapse file tree 3 files changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,7 @@ dependencies {
1818
1919 runtimeOnly(" org.slf4j:slf4j-simple" )
2020}
21+
22+ javaModuleTesting.whitebox(testing.suites[" test" ]) {
23+ requires.add(" org.junit.jupiter.api" )
24+ }
Original file line number Diff line number Diff line change @@ -4,15 +4,11 @@ plugins {
44 id(" org.gradlex.java-module-testing" )
55}
66
7- javaModuleTesting.whitebox(
8- testing.suites.getByName<JvmTestSuite >(" test" ) {
9- useJUnitJupiter(" " )
10- targets.all {
11- testTask { jvmArgs(" -Dorg.slf4j.simpleLogger.defaultLogLevel=error" ) }
12- }
7+ testing.suites.getByName<JvmTestSuite >(" test" ) {
8+ useJUnitJupiter(" " )
9+ targets.all {
10+ testTask { jvmArgs(" -Dorg.slf4j.simpleLogger.defaultLogLevel=error" ) }
1311 }
14- ) {
15- requires.add(" org.junit.jupiter.api" )
1612}
1713
1814testing.suites.create<JvmTestSuite >(" integtest" ) {
Original file line number Diff line number Diff line change 1+ package org .my .lib .integtest ;
2+
3+ import org .junit .jupiter .api .Test ;
4+
5+ import java .io .BufferedReader ;
6+ import java .io .IOException ;
7+ import java .io .InputStream ;
8+ import java .io .InputStreamReader ;
9+
10+ import static org .junit .jupiter .api .Assertions .assertTrue ;
11+
12+ public class LibIntegTest {
13+
14+ @ Test
15+ public void libWorks () throws IOException {
16+ // assertTrue(...);
17+ }
18+
19+ }
You can’t perform that action at this time.
0 commit comments