Procházet zdrojové kódy

new main for my convenience in testing the testing module

tags/PRE_ANDY
wisberg před 19 roky
rodič
revize
857d23c5bc

+ 11
- 2
testing/testsrc/org/aspectj/testing/util/LangUtilTest.java Zobrazit soubor

@@ -21,6 +21,7 @@ import java.util.List;
import java.util.StringTokenizer;

import junit.framework.TestCase;
import junit.framework.TestResult;
import junit.textui.TestRunner;

/**
@@ -33,8 +34,16 @@ public class LangUtilTest extends TestCase {
= "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());
}
}
/**

+ 11
- 2
testing/testsrc/org/aspectj/testing/util/StreamGrabberTest.java Zobrazit soubor

@@ -22,6 +22,7 @@ package org.aspectj.testing.util;
import java.io.PrintStream;

import junit.framework.TestCase;
import junit.framework.TestResult;
import junit.textui.TestRunner;

/**
@@ -35,8 +36,16 @@ public class StreamGrabberTest extends TestCase {
= "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); }

Načítá se…
Zrušit
Uložit