Open
Description
Description
No tests were generated for the class:
public class Example {
public void bad(String data) {
String result = data + ";";
}
}
To Reproduce
Steps to reproduce the behavior:
- Create a new Maven project
- Paste the code above there
- Disable fizzing (symbolic execution 100%)
- Run test generation with Do not mock, 60 sec
Expected behavior
Tests are supposed to be generated.
Actual behavior

Additional context
After the scenario above:
- Run test generation with Mock everything outside the class and Mock static methods
- Tests are generated successfully
- Again run generation with Do not mock
- Now tests are generated successfully too
Possible reason
ApplicationContext.staticsMockingIsConfigured
affects UtMock
, but shouldn't
Related code
org/utbot/engine/Traverser.kt:1421
org/utbot/engine/Mocks.kt:233
org/utbot/engine/Mocks.kt:240
Metadata
Metadata
Assignees
Type
Projects
Status
Todo