I would like to run the JUnit programmatic method. I know that I can run the entire test using the following code snippet:
Class<?> test = Class.forName("MyTestClass"); JUnitCore junit = new JUnitCore(); Result result = junit.run(test);
However, I would like to run a specific method in this test class that contains several methods.
It would also be great if I could control the behavior of setUp / tearDown.
thanks
source share