import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
class RunTests {
public static void main(String args[]) {
Result result = JUnitCore.runClasses(TestClass.class);
for (Failure failure : result.getFailures()) {
System.out.println("FAIL!: " + failure.toString());
}
}
}
public static void main(String args[]) {
Result result = JUnitCore.runClasses(TestClass.class);
for (Failure failure : result.getFailures()) {
System.out.println("FAIL!: " + failure.toString());
}
}
}
http://www.vogella.de/articles/JUnit/article.html
No comments:
Post a Comment