File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/concrete Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ import org.mockito.Mockito
45
45
import org.mockito.stubbing.Answer
46
46
import org.objectweb.asm.Type
47
47
import org.utbot.common.withAccessibility
48
+ import java.security.AccessController
49
+ import java.security.PrivilegedAction
48
50
49
51
/* *
50
52
* Constructs values (including mocks) from models.
@@ -224,7 +226,7 @@ class MockValueConstructor(
224
226
}
225
227
226
228
private fun generateMockitoMock (clazz : Class <* >, mocks : Map <ExecutableId , List <UtModel >>): Any {
227
- return Mockito .mock(clazz, generateMockitoAnswer(mocks))
229
+ return AccessController .doPrivileged( PrivilegedAction { Mockito .mock(clazz, generateMockitoAnswer(mocks)) } )
228
230
}
229
231
230
232
private fun computeConcreteValuesForMethods (
You can’t perform that action at this time.
0 commit comments