You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Project version of 'utbot-api' used instead of plugin one #1099
As I found out it looks like there is some type of conflict between plugin utbot-api.jar and project one.
The utbot project I used for testing was quite old and didn't have commit which introduced UtMock.disableClassCastExceptionCheck(Object object) method. It seems that during test generation utbot-api module complied from old project code was used instead of utbot-api.jar supplied with the plugin.
I think we need some kind of investigation why it happens and how to prevent such problems in future, so we could safely use samples from the project and not worry about potential conflicts.
changed the title [-]Empty test is generated for examples.algorithms.Graph[/-][+]Project version of 'utbot-api' used instead of plugin one[/+]on Oct 7, 2022
Activity
sergeypospelov commentedon Oct 6, 2022
Can't reproduce on https://github.com/UnitTestBot/UTBotJava/actions/runs/3191318852
alisevych commentedon Oct 6, 2022
@sergeypospelov This is in Release branch, not in main
tyuldashev commentedon Oct 6, 2022
As I found out it looks like there is some type of conflict between plugin
utbot-api.jarand project one.The utbot project I used for testing was quite old and didn't have commit which introduced
UtMock.disableClassCastExceptionCheck(Object object)method. It seems that during test generationutbot-apimodule complied from old project code was used instead ofutbot-api.jarsupplied with the plugin.I think we need some kind of investigation why it happens and how to prevent such problems in future, so we could safely use samples from the project and not worry about potential conflicts.
[-]Empty test is generated for examples.algorithms.Graph[/-][+]Project version of 'utbot-api' used instead of plugin one[/+]alisevych commentedon Oct 13, 2022
Additional context
Reproduced. Most assuredly UtMock class is used not from the installed plugin, but from the opened and built project.
Steps to reproduce
Expected behavior
Tests are supposed to be generated without errors.
Actual behavior
There is the following error test:
Comments
There is no method UtMock.assumeOrExecuteConcretely before 07.06.2022 in UtMock class.
It should be present in the plugin's jar.