I have a set of JUnit Test Cases and I execute them from ANT using the junit task. While executing the tests, in the console I get to see only which test case (i.e. Java cla
If you do not want to create your own test runner you could try using the stacktrace.
The following Method prints the class and method name of the method that called it.
public static void printMethod() {
System.out.println(Thread.currentThread().getStackTrace()[2]);
}
You would have to call this method in each of your test methods.