
junit
A6__6A
这个作者很懒,什么都没留下…
展开
-
junit 执行顺序问题
junit 执行顺序问题猜猜以下代码的输出结果:public class JunitOrderTest { @Test public void aTest() { System.out.println("a"); } @Test public void a1Test() { System.out.println("a1"); } @Test...原创 2018-03-05 22:56:24 · 1943 阅读 · 0 评论 -
junit 方法间变量共享问题
junit 变量共享问题猜猜以下代码的执行结果:// 该注解指定junit按方法名的顺序执行方法@FixMethodOrder(MethodSorters.NAME_ASCENDING)public class JunitVariableTest { private static int index = 0; private static String sConte...原创 2018-03-05 23:14:01 · 3384 阅读 · 1 评论