Skip to content

Commit fc1d1df

Browse files
committed
Fix incorrect array class id in tests
1 parent 250f09d commit fc1d1df

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

utbot-framework/src/test/kotlin/org/utbot/framework/assemble/AssembleModelGeneratorTests.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import org.junit.jupiter.api.BeforeEach
4646
import org.junit.jupiter.api.Disabled
4747
import org.junit.jupiter.api.Test
4848
import org.utbot.examples.assemble.*
49+
import org.utbot.framework.codegen.model.constructor.util.arrayTypeOf
4950

5051
/**
5152
* Test classes must be located in the same folder as [AssembleTestUtils] class.
@@ -1105,7 +1106,7 @@ class AssembleModelGeneratorTests {
11051106
testClassId,
11061107
"array" to UtArrayModel(
11071108
modelIdCounter.incrementAndGet(),
1108-
ClassId("[L${innerClassId.canonicalName}", innerClassId),
1109+
arrayTypeOf(innerClassId),
11091110
length = 3,
11101111
UtNullModel(innerClassId),
11111112
mutableMapOf(
@@ -1175,11 +1176,11 @@ class AssembleModelGeneratorTests {
11751176
val testClassId = ArrayOfComplexArrays::class.id
11761177
val innerClassId = PrimitiveFields::class.id
11771178

1178-
val innerArrayClassId = ClassId("[L${innerClassId.canonicalName}", innerClassId)
1179+
val innerArrayClassId = arrayTypeOf(innerClassId)
11791180

11801181
val arrayOfArraysModel = UtArrayModel(
11811182
modelIdCounter.incrementAndGet(),
1182-
ClassId("[Lorg.utbot.examples.assemble.ComplexArray", testClassId),
1183+
arrayTypeOf(testClassId),
11831184
length = 2,
11841185
UtNullModel(innerArrayClassId),
11851186
mutableMapOf(

0 commit comments

Comments
 (0)