From a4fd3a3b4f3d634f579effdef522236c5bf4b59f Mon Sep 17 00:00:00 2001 From: Andrey Tarbeev Date: Fri, 2 Sep 2022 14:33:48 +0300 Subject: [PATCH] Add back cross reference test --- ...ClassWithCrossReferenceRelationshipTest.kt | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/utbot-framework-test/src/test/kotlin/org/utbot/examples/codegen/deepequals/ClassWithCrossReferenceRelationshipTest.kt b/utbot-framework-test/src/test/kotlin/org/utbot/examples/codegen/deepequals/ClassWithCrossReferenceRelationshipTest.kt index e69de29bb2..5fd79a17e7 100644 --- a/utbot-framework-test/src/test/kotlin/org/utbot/examples/codegen/deepequals/ClassWithCrossReferenceRelationshipTest.kt +++ b/utbot-framework-test/src/test/kotlin/org/utbot/examples/codegen/deepequals/ClassWithCrossReferenceRelationshipTest.kt @@ -0,0 +1,29 @@ +package org.utbot.examples.codegen.deepequals + +import org.junit.jupiter.api.Disabled +import org.junit.jupiter.api.Test +import org.utbot.tests.infrastructure.DoNotCalculate +import org.utbot.tests.infrastructure.UtValueTestCaseChecker +import org.utbot.framework.plugin.api.CodegenLanguage +import org.utbot.testcheckers.eq +import org.utbot.tests.infrastructure.CodeGeneration + +class ClassWithCrossReferenceRelationshipTest : UtValueTestCaseChecker( + testClass = ClassWithCrossReferenceRelationship::class, + testCodeGeneration = true, + languagePipelines = listOf( + CodeGenerationLanguageLastStage(CodegenLanguage.JAVA), + CodeGenerationLanguageLastStage(CodegenLanguage.KOTLIN, CodeGeneration) + ) +) { + // TODO: The test is disabled due to [https://github.com/UnitTestBot/UTBotJava/issues/812] + @Disabled + @Test + fun testClassWithCrossReferenceRelationship() { + check( + ClassWithCrossReferenceRelationship::returnFirstClass, + eq(2), + coverage = DoNotCalculate + ) + } +} \ No newline at end of file