Skip to content

Commit 79b2516

Browse files
authored
Add back cross reference test (#846)
1 parent 49820d7 commit 79b2516

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package org.utbot.examples.codegen.deepequals
2+
3+
import org.junit.jupiter.api.Disabled
4+
import org.junit.jupiter.api.Test
5+
import org.utbot.tests.infrastructure.DoNotCalculate
6+
import org.utbot.tests.infrastructure.UtValueTestCaseChecker
7+
import org.utbot.framework.plugin.api.CodegenLanguage
8+
import org.utbot.testcheckers.eq
9+
import org.utbot.tests.infrastructure.CodeGeneration
10+
11+
class ClassWithCrossReferenceRelationshipTest : UtValueTestCaseChecker(
12+
testClass = ClassWithCrossReferenceRelationship::class,
13+
testCodeGeneration = true,
14+
languagePipelines = listOf(
15+
CodeGenerationLanguageLastStage(CodegenLanguage.JAVA),
16+
CodeGenerationLanguageLastStage(CodegenLanguage.KOTLIN, CodeGeneration)
17+
)
18+
) {
19+
// TODO: The test is disabled due to [https://github.com/UnitTestBot/UTBotJava/issues/812]
20+
@Disabled
21+
@Test
22+
fun testClassWithCrossReferenceRelationship() {
23+
check(
24+
ClassWithCrossReferenceRelationship::returnFirstClass,
25+
eq(2),
26+
coverage = DoNotCalculate
27+
)
28+
}
29+
}

0 commit comments

Comments
 (0)