Description
If UtUtils with mocking support exists and then it's not required during next test generation then UtUtils has been updated with version which doesn't take into account mocking, so tests created earlier may not work properly.
To Reproduce
Steps to reproduce the behavior:
- Open
utbot project
- Generate tests for
org.utbot.examples.mock.CommonMocksExample class with Mock everything outside class option. Then UtUtils created with mocking support.
- Now generate tests for
org.utbot.examples.collections.QueueUsages class with Do not mock option.
- Open the
org.utbot.runtime.utils.java.UtUtils class
Expected behavior
The version with mock framework support is left. Assuming that deepEquals would work properly with both "normal" and mocked objects.
Actual behavior
UtUtils replaced with new version which doesn't support mocking, so potentially may not properly work with already generated tests for CommonMocksExample
Description
If
UtUtilswith mocking support exists and then it's not required during next test generation thenUtUtilshas been updated with version which doesn't take into account mocking, so tests created earlier may not work properly.To Reproduce
Steps to reproduce the behavior:
utbotprojectorg.utbot.examples.mock.CommonMocksExampleclass withMock everything outside classoption. ThenUtUtilscreated with mocking support.org.utbot.examples.collections.QueueUsagesclass withDo not mockoption.org.utbot.runtime.utils.java.UtUtilsclassExpected behavior
The version with mock framework support is left. Assuming that
deepEqualswould work properly with both "normal" and mocked objects.Actual behavior
UtUtilsreplaced with new version which doesn't support mocking, so potentially may not properly work with already generated tests forCommonMocksExample