Skip to content

Project version of 'utbot-api' used instead of plugin one #1099

@tyuldashev

Description

@tyuldashev

Description
When using samples from UTBot java project libraries compiled from this project are used during test generation.

To Reproduce

Steps to reproduce the behavior:

  1. Open UTbot java project
  2. Take the code before this commit which introduced UtMock.disableClassCastExceptionCheck(Object object)
  3. Open org.utbot.examples.algorithms.Graph class from UTBot Java project
  4. Start generation of the tests for the class with `Do not mock' setting

Expected behavior

No errors during generation of the test, because plugin uses its own libraries

Actual behavior
One of the error tests has no executable code and reveals that project code was used during generation

    public void testGetTime_errors() {
        // Couldn't generate some tests. List of errors:
        // 
        // 1 occurrences of:
        // couldn't find method disableClassCastExceptionCheck([java.lang.Object]) in org.utbot.api.mock.UtMock

    }

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorctg-bugIssue is a bug

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions