@@ -3,7 +3,6 @@ package org.utbot.framework.codegen.model.constructor.tree
3
3
import org.utbot.framework.codegen.Junit4
4
4
import org.utbot.framework.codegen.Junit5
5
5
import org.utbot.framework.codegen.TestNg
6
- import org.utbot.framework.codegen.model.constructor.builtin.TestClassUtilMethodProvider
7
6
import org.utbot.framework.codegen.model.constructor.builtin.forName
8
7
import org.utbot.framework.codegen.model.constructor.context.CgContext
9
8
import org.utbot.framework.codegen.model.constructor.context.CgContextOwner
@@ -95,19 +94,14 @@ internal abstract class TestFrameworkManager(val context: CgContext)
95
94
}
96
95
97
96
open fun getDeepEqualsAssertion (expected : CgExpression , actual : CgExpression ): CgMethodCall {
98
- // If an util method provider is not TestClassUtilMethodProvider, then we are using util methods from library.
99
- // In this case we don't need to add required util methods to the test class,
100
- // because they are all already in a library.
101
- if (utilMethodProvider is TestClassUtilMethodProvider ) {
102
- requiredUtilMethods + = setOf (
103
- utilMethodProvider.deepEqualsMethodId,
104
- utilMethodProvider.arraysDeepEqualsMethodId,
105
- utilMethodProvider.iterablesDeepEqualsMethodId,
106
- utilMethodProvider.streamsDeepEqualsMethodId,
107
- utilMethodProvider.mapsDeepEqualsMethodId,
108
- utilMethodProvider.hasCustomEqualsMethodId
109
- )
110
- }
97
+ requiredUtilMethods + = setOf (
98
+ utilMethodProvider.deepEqualsMethodId,
99
+ utilMethodProvider.arraysDeepEqualsMethodId,
100
+ utilMethodProvider.iterablesDeepEqualsMethodId,
101
+ utilMethodProvider.streamsDeepEqualsMethodId,
102
+ utilMethodProvider.mapsDeepEqualsMethodId,
103
+ utilMethodProvider.hasCustomEqualsMethodId
104
+ )
111
105
// TODO we cannot use common assertEquals because of using custom deepEquals
112
106
// For this reason we have to use assertTrue here
113
107
// Unfortunately, if test with assertTrue fails, it gives non informative message false != true
0 commit comments