Well, i spend a lot of time searching for an issue..
This was happened to me:
I build a service, build an integration test case, and run it
When i made the test pass, i choice to run all my unit and integration test.
But this time, only that integration test failed.
Strange if i run all the integration test, Green light in junit
if i run all the unit and integration test, RED!
Wow, awesome, just was a save and find of an entity object, and that doesnt work.
After many debugging hours i find that the save method of my entity class in the integration test was calling a MockUtils.class. That is not good, i dont want a mock in mi integration test, i want a real implementation of the save method in mi inmemory database.
Well the problem was mocking a inherited domain class, i explained better here
I found a workaround, but i will wait for a fix.
No hay comentarios:
Publicar un comentario