Skip to content

UtUtils with mocks rewritten by UtUtils without mocks #1378

Closed
@tyuldashev

Description

@tyuldashev

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:

  1. Open utbot project
  2. Generate tests for org.utbot.examples.mock.CommonMocksExample class with Mock everything outside class option. Then UtUtils created with mocking support.
  3. Now generate tests for org.utbot.examples.collections.QueueUsages class with Do not mock option.
  4. 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

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions