Tinazhou 2016-03-11
package com.xbosoft.junit4; import org.junit.Test; publicclass TestBingFa { @Test publicvoid testMethod() { System.out.println("test success!"); } }
package com.wangjx.bingfa;
import org.junit.runner.JUnitCore;
import org.junit.runner.Request;
public class PerformTestBingFa {
public static void main(String[] args) {
new Thread() {
public void run() {
new JUnitCore().run(Request.method(TestBingFa.class, "testMethod"));
}
}.start();
new Thread() {
public void run() {
new JUnitCore().run(Request.method(TestBingFa.class, "testMethod"));
}
}.start();
}
}