我没有使用过蚂蚁的经验-所以我现在不使用它来测试它。
在Internet上搜索似乎在混淆旧的jUnit 3.8和jUnit 4.0行为。现在尝试一种使用“新行为”的方法
编辑:
现在可以使用:
AllTest更改为:
import org.junit.runner.RunWith;import org.junit.runners.Suite;import org.junit.runners.Suite.SuiteClasses;@RunWith(value=Suite.class)@SuiteClasses(value={TestCase.class})public class AllTests {}TestCase更改为:
import static org.junit.Assert.assertTrue;import org.junit.Test;public class TestCase {@Test public void test1 { assertTrue (tmp.getTermin().equals(soll)); }}


