Description
In some case when mocking strategy applied no test code is generated.
To Reproduce
- Use UNitTestBotJava project to reproduce the problem
- In UTBot settings enable
Force mocking static methods and Code analysis to Deeper only - Open class
utbot-sample/src/main/java/org/utbot/examples/mock/MockStaticMethodExample.java - Generate tests for the class with following settings:
Mock strategy = Mock class environment, Mock static methods enabled
Expected behavior
Some tests are generated
Actual behavior
One empty test is generated:
publicvoidtestUseStaticMethod_errors() {
// Couldn't generate some tests. List of errors:// // 2 occurrences of:// org.mockito.MockedStatic
}
Description
In some case when mocking strategy applied no test code is generated.
To Reproduce
Force mocking static methodsandCode analysistoDeeperonlyutbot-sample/src/main/java/org/utbot/examples/mock/MockStaticMethodExample.javaMock strategy = Mock class environment,Mock static methodsenabledExpected behavior
Some tests are generated
Actual behavior
One empty test is generated: