import java.util.StringTokenizer;
import junit.framework.TestCase;
+import junit.framework.TestResult;
import junit.textui.TestRunner;
/**
= "org.aspectj.testing.util.LangUtilTest";
/** @param args ignored */
- public static void main(String[] args) {
- TestRunner.main(new String[] {ME});
+ public static void main(String[] args) throws Exception {
+ class C extends TestRunner {
+ public TestResult go(String[] a) throws Exception {
+ return start(a);
+ }
+ }
+ TestResult r = new C().go(new String[] {ME});
+ if (!r.wasSuccessful()) {
+ System.err.println(r.errorCount() + "/" + r.failureCount());
+ }
}
/**
import java.io.PrintStream;
import junit.framework.TestCase;
+import junit.framework.TestResult;
import junit.textui.TestRunner;
/**
= "org.aspectj.testing.util.StreamGrabberTest";
/** @param args ignored */
- public static void main(String[] args) {
- TestRunner.main(new String[] {ME});
+ public static void main(String[] args) throws Exception {
+ class C extends TestRunner {
+ public TestResult go(String[] a) throws Exception {
+ return start(a);
+ }
+ }
+ TestResult r = new C().go(args);
+ if (!r.wasSuccessful()) {
+ System.err.println(r.errorCount() + "/" + r.failureCount());
+ }
}
public StreamGrabberTest(String s) { super(s); }