I have a java main program. This program holds function main(String[] args)
.
I have another program that holds function of Junit. Both are independent program and under different packages. After running methods from class (having main function), I want to transfer control to Junit class file (i.e. junit class file take control and run program according to @ annotation).
Is this possible?
Note:
- JUnitCore() is not the option. It doesn't for my scenario.
- I do not want to run Junit inside my main program. I want it to run as separate application.
Any other suggestions?