File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/tree
utbot-framework-test/src/test/kotlin/org/utbot/examples/enums Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
package org.utbot.examples.enums
2
2
3
+ import org.junit.jupiter.api.Disabled
3
4
import org.junit.jupiter.api.Test
4
5
import org.utbot.examples.enums.ComplexEnumExamples.Color
5
6
import org.utbot.examples.enums.ComplexEnumExamples.Color.BLUE
@@ -74,6 +75,7 @@ class ComplexEnumExamplesTest : UtValueTestCaseChecker(
74
75
}
75
76
76
77
@Test
78
+ @Disabled(" TODO: nested anonymous classes are not supported: https://github.com/UnitTestBot/UTBotJava/issues/617" )
77
79
fun testFindState () {
78
80
check(
79
81
ComplexEnumExamples ::findState,
Original file line number Diff line number Diff line change @@ -1361,7 +1361,12 @@ open class CgMethodConstructor(val context: CgContext) : CgContextOwner by conte
1361
1361
// TODO: remove this line when SAT-1273 is completed
1362
1362
execution.displayName = execution.displayName?.let { " ${executableId.name} : $it " }
1363
1363
testMethod(testMethodName, execution.displayName) {
1364
- val statics = currentExecution!! .stateBefore.statics
1364
+ // Enum constants are static, but there is no need to store and recover value for them
1365
+ val statics = currentExecution!! .stateBefore
1366
+ .statics
1367
+ .filterNot { it.value is UtEnumConstantModel }
1368
+ .filterNot { it.value.classId.outerClass?.isEnum == true }
1369
+
1365
1370
rememberInitialStaticFields(statics)
1366
1371
val stateAnalyzer = ExecutionStateAnalyzer (execution)
1367
1372
val modificationInfo = stateAnalyzer.findModifiedFields()
You can’t perform that action at this time.
0 commit comments