junit4 – running test cases from a java class – Education Career Blog

I have say 10 test cases, and i want to run them from a java class, i can get the Junit’s class name only at runtime. Is it possible to do so.

Please help me.

,

org.junit.runner.JUnitCore.run(Class<?>...)

It supports multiple test classes. From JUnit4.

Leave a Comment