Skip to content

Commit b7127fe

Browse files
Revert parametrized test generation for TestNg #1304 (#1331)
Correct argList ClassId for TestNg
1 parent 7f051a1 commit b7127fe

File tree

1 file changed

+1
-18
lines changed
  • utbot-framework/src/main/kotlin/org/utbot/framework/codegen

1 file changed

+1
-18
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/Domain.kt

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -309,24 +309,7 @@ object TestNg : TestFramework(id = "TestNG",displayName = "TestNG") {
309309
override val nestedClassesShouldBeStatic = true
310310

311311
override val argListClassId: ClassId
312-
get() {
313-
val outerArrayId = Array<Array<Any?>?>::class.id
314-
val innerArrayId = BuiltinClassId(
315-
simpleName = objectArrayClassId.simpleName,
316-
canonicalName = objectArrayClassId.canonicalName,
317-
packageName = objectArrayClassId.packageName,
318-
elementClassId = objectClassId,
319-
typeParameters = TypeParameters(listOf(objectClassId))
320-
)
321-
322-
return BuiltinClassId(
323-
simpleName = outerArrayId.simpleName,
324-
canonicalName = outerArrayId.canonicalName,
325-
packageName = outerArrayId.packageName,
326-
elementClassId = innerArrayId,
327-
typeParameters = TypeParameters(listOf(innerArrayId))
328-
)
329-
}
312+
get() = Array<Array<Any?>?>::class.id
330313

331314
@OptIn(ExperimentalStdlibApi::class)
332315
override fun getRunTestsCommand(

0 commit comments

Comments
 (0)