I was wondering how to run some JUnit4 test inside a java program. Basically – depending on some conditions during runtime I need to decide which test runner to use. Using Junit3 I could override runTest method from TestCase class – but in JUnit4 tests do not extend TestCase class so I have nothing to override… Is there maybe some method that I need to implement… or sth else…
Share
Here’s some sample code for you: