Commit d44d3a4 1 parent 2ab80d8 commit d44d3a4 Copy full SHA for d44d3a4
File tree 4 files changed +29
-21
lines changed
kotlin/okio/test/integration
4 files changed +29
-21
lines changed Original file line number Diff line number Diff line change @@ -251,8 +251,14 @@ tasks {
251
251
options.release = 9
252
252
}
253
253
254
+ val integrationTest = named<Test >(" integrationTest" ) {
255
+ jvmArgumentProviders.add(CommandLineArgumentProvider {
256
+ listOf (" --patch-module" , " okio.test.integration=${sourceSets[" integrationTest" ].output.asPath} " )
257
+ })
258
+ }
259
+
254
260
check {
255
- dependsOn(testing.suites.named( " integrationTest" ) )
261
+ dependsOn(integrationTest)
256
262
}
257
263
}
258
264
Original file line number Diff line number Diff line change 1
1
open module okio .test .integration {
2
2
requires okio ;
3
3
requires junit ;
4
+ requires kotlin .stdlib ;
4
5
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ package okio.test.integration
2
+
3
+ import okio.FileSystem
4
+ import org.junit.Assert.assertEquals
5
+ import org.junit.Assert.assertFalse
6
+ import org.junit.Assert.assertTrue
7
+ import org.junit.Test
8
+
9
+ class ModuleTest {
10
+ @Test
11
+ fun testModule () {
12
+ // test okio.test.integration is modular
13
+ assertTrue(ModuleTest ::class .java.module.isNamed)
14
+ assertEquals(ModuleTest ::class .java.module.name, " okio.test.integration" )
15
+ assertFalse(ModuleTest ::class .java.module.descriptor.isAutomatic)
16
+ // test okio is modular
17
+ assertTrue(FileSystem ::class .java.module.isNamed)
18
+ assertEquals(FileSystem ::class .java.module.name, " okio" )
19
+ assertFalse(FileSystem ::class .java.module.descriptor.isAutomatic)
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments