Skip to content

Commit 405444f

Browse files
committed
Fix bug in assertEquals for String in codegen
1 parent ac667bb commit 405444f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/tree/CgMethodConstructor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ open class CgMethodConstructor(val context: CgContext) : CgContextOwner by conte
659659
}
660660
// other primitives and string
661661
else -> {
662-
require(expected.type.isPrimitive || expected.type == String::class.java) {
662+
require(expected.type.isPrimitive || expected.type == stringClassId) {
663663
"Expected primitive or String but got ${expected.type}"
664664
}
665665
assertions[assertEquals](expected, actual)

0 commit comments

Comments
 (0)