We are evaluating CodePro analytix to generate jUnits. We are working on a web project in spring3.0. As of now CodePro is generating useless jUnits. It generates identical testcase. ( I have already specified spring-test.jar as the manual suggests ).
If you have used this tool for jUnit generation in Spring project, then please help. I assume we have to specify our spring-configuration
xml somewhere or else how it will get to know about DI. Also, we might require to mock few of the required object, not sure though.
Once done the codepro plugin setup, Right Click on the class or package ->select generate Junit test cases.
It will generate test class for your class. Then inside setup method you have to set the spring config XML.
ServiceFacadeImpl.Java:
*Codepro Generated Class *
ServiceFacadeImplTest.java:
In the setup() method, we have to load the spring config xml, the above one i have loaded applicationContext-facade.xml