-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a bug
Description
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:
- Open UTbot java project
- Take the code before this commit which introduced
UtMock.disableClassCastExceptionCheck(Object object)
- Open
org.utbot.examples.algorithms.Graph
class from UTBot Java project - 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 generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a bug
Type
Projects
Status
Todo