File tree 1 file changed +7
-0
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/tree
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -552,6 +552,13 @@ open class CgMethodConstructor(val context: CgContext) : CgContextOwner by conte
552
552
val beforeVariable = cache.before[path]?.variable
553
553
val (afterVariable, afterModel) = cache.after[path]!!
554
554
555
+ // TODO: remove the following after the issue fix
556
+ // We do not generate some assertions for Enums due to [https://github.com/UnitTestBot/UTBotJava/issues/1704].
557
+ val beforeModel = cache.before[path]?.model
558
+ if (beforeModel !is UtEnumConstantModel && afterModel is UtEnumConstantModel ) {
559
+ return
560
+ }
561
+
555
562
if (afterModel !is UtReferenceModel ) {
556
563
val expectedAfter =
557
564
variableConstructor.getOrCreateVariable(afterModel, " expected" + afterVariable.name.capitalize())
You can’t perform that action at this time.
0 commit comments