package com.netscape.test; import org.junit.internal.RealSystem; import org.junit.runner.JUnitCore; import org.junit.runner.Result; public class TestRunner { public Result run(String... args) throws Exception { JUnitCore core = new JUnitCore(); core.addListener(new TestListener()); return core.runMain(new RealSystem(), args); } public static void main(String... args) throws Exception { TestRunner runner = new TestRunner(); Result result = runner.run(args); System.exit(result.wasSuccessful() ? 0 : 1); } }