IllegalArgumentException: Static mocking cannot be used without mock framework
#1936
Labels
IllegalArgumentException: Static mocking cannot be used without mock framework
#1936
Description
In case user generates tests with mocking static methods and later removes dependency on Mockito then tests can not generated any more.
To Reproduce
Steps to reproduce the behavior:
org.utbot.examples.exceptions.ExceptionExamples
from UTBot Java project.Expected behavior
Test without mocks are generated.
Actual behavior
Exception is thrown at first execution. No tests are generated.
Visual proofs (screenshots, logs, images)
Exception thrown:
Additional context
The problem is in
resources/mockito-extensions/org.mockito.plugins.MockMaker
file generated at step #3, should user remove it then no problems occur.The text was updated successfully, but these errors were encountered: