File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/codegen Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class CgFieldDeclaration(
173173 val ownerClassId : ClassId ,
174174 val declaration : CgDeclaration ,
175175 val annotation : CgAnnotation ? = null ,
176- val visibility : VisibilityModifier = VisibilityModifier .PUBLIC ,
176+ val visibility : VisibilityModifier = VisibilityModifier .PRIVATE ,
177177) : CgElement
178178
179179/* *
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ abstract class CgAbstractSpringTestClassConstructor(context: CgContext):
3636 fields + = constructClassFields(testClassModel)
3737 clearUnwantedVariableModels()
3838
39- methodRegions + = constructAdditionalMethods()
40-
4139 for ((testSetIndex, testSet) in testClassModel.methodTestSets.withIndex()) {
4240 updateCurrentExecutable(testSet.executableId)
4341 withTestSetIdScope(testSetIndex) {
@@ -50,6 +48,8 @@ abstract class CgAbstractSpringTestClassConstructor(context: CgContext):
5048 }
5149 }
5250
51+ methodRegions + = constructAdditionalMethods()
52+
5353 if (currentTestClass == outerMostTestClass) {
5454 val utilEntities = collectUtilEntities()
5555 // If utilMethodProvider is TestClassUtilMethodProvider, then util entities should be declared
You can’t perform that action at this time.
0 commit comments