标签:junit3
-
Junit会在每次测试方法调用时重新初始化类吗? - java
当我运行以下代码时,两个测试用例都变为现实: import static junit.framework.Assert.assertEquals; import org.junit.Test; public class MyTest{ private int count; @Before public void before(){ count=1; } @T […]
当我运行以下代码时,两个测试用例都变为现实: import static junit.framework.Assert.assertEquals; import org.junit.Test; public class MyTest{ private int count; @Before public void before(){ count=1; } @T […]