-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathInputJarTest.kt
39 lines (31 loc) · 1.02 KB
/
InputJarTest.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright 2016-2022 JetBrains s.r.o.
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
*/
package kotlinx.validation.test
import kotlinx.validation.api.*
import org.junit.*
class InputJarTest : BaseKotlinGradleTest() {
@Test
fun testOverrideInputJar() {
val runner = test {
buildGradleKts {
resolve("/examples/gradle/base/withPlugin.gradle.kts")
resolve("/examples/gradle/configuration/jarAsInput/inputJar.gradle.kts")
}
kotlin("Properties.kt") {
resolve("/examples/classes/Properties.kt")
}
apiFile(projectName = rootProjectDir.name) {
resolve("/examples/classes/PropertiesJarTransformed.dump")
}
runner {
arguments.add(":apiCheck")
}
}
runner.build().apply {
assertTaskSuccess(":jar")
assertTaskSuccess(":apiCheck")
}
}
}