Skip to content

No field $__is_mock_null in class org.utbot.api.mock.UtMock #456

Closed
@CaelmBleidd

Description

@CaelmBleidd

Description

If we have user's code with UtMock.makeSymbolic usage, we have an error -- `java.lang.IllegalStateException: No field $__is_mock_null in class org.utbot.api.mock.UtMock. Seems like we do not have instrumentation for this class, therefore we have trouble with mocking it in the concrete executor.

To Reproduce

Steps to reproduce the behavior:

  1. Run any project in IntelliJ Idea
  2. Write code with UtMock.makeSymbolic usage
  3. Use the plugin to generate tests

Expected behaviour

Correctly generated tests.

Actual behaviour

IllegalStateException

Visual proofs

image

Environment

otherPackage mocks level`

Additional context

There is no additional context.

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions