File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
utbot-framework-test/src/test/kotlin/org/utbot/examples/lambda Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,22 @@ package org.utbot.examples.lambda
2
2
3
3
import org.junit.jupiter.api.Disabled
4
4
import org.junit.jupiter.api.Test
5
+ import org.utbot.framework.plugin.api.CodegenLanguage
5
6
import org.utbot.tests.infrastructure.UtValueTestCaseChecker
6
7
import org.utbot.tests.infrastructure.isException
7
8
import org.utbot.testcheckers.eq
9
+ import org.utbot.tests.infrastructure.CodeGeneration
8
10
9
- class SimpleLambdaExamplesTest : UtValueTestCaseChecker (testClass = SimpleLambdaExamples : :class) {
11
+ class SimpleLambdaExamplesTest : UtValueTestCaseChecker (
12
+ testClass = SimpleLambdaExamples : :class,
13
+ languagePipelines = listOf(
14
+ CodeGenerationLanguageLastStage (CodegenLanguage .JAVA ),
15
+ // TODO : generics in Kotlin . At the moment, when we create an instance of a functional interface
16
+ // via lambda (through reflection), we need to do a type cast (e.g. `obj as Predicate <Int >`),
17
+ // but since generics are not supported yet, we use a raw type `Predicate ` instead (which is not allowed in Kotlin ).
18
+ CodeGenerationLanguageLastStage (CodegenLanguage .KOTLIN , CodeGeneration )
19
+ )
20
+ ) {
10
21
@Test
11
22
fun testBiFunctionLambdaExample () {
12
23
checkWithException(
You can’t perform that action at this time.
0 commit comments