lundi 5 janvier 2015

how to use jmockit with spring's mockmvc to test controller

I want to use mockmvc to test controller which is recommended by Spring. But,I also have to use jmockit to mock the dependences.


The problem is jmockit can't do well with mockmvc, whether the "stand alone set up()" or the "web a pock text set up()". Another mock tool named mockito is well done with this problem,but it has a lot limits in mocking dependencies.


So,anybody has the experience or idea, please tell me. Thank you very much.


Aucun commentaire:

Enregistrer un commentaire