You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/Kapt3IT.kt
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1269,4 +1269,15 @@ open class Kapt3IT : Kapt3BaseIT() {
1269
1269
}
1270
1270
}
1271
1271
}
1272
+
1273
+
@DisplayName("KT-59256: kapt generated files are included into the test runtime classpath")
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
3
+
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
4
+
*/
5
+
6
+
packagecom.example
7
+
8
+
importorg.junit.Test
9
+
importjava.util.ServiceLoader
10
+
11
+
classTests {
12
+
@Test
13
+
funtestServiceLoading() {
14
+
ServiceLoader.load(SomeInterface::class.java).singleOrNull() ?: error("Cannot load SomeInterface implementation, perhaps the service declaration couldn't be found")
0 commit comments