![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
★·········【JUnit】
Ryze丶
不积跬步无以至千里
展开
-
Junit initializationerror错误
原因可能如下:1.有返回值的方法不能直接测试2.带参数的方法不能直接测试3.访问权限在public以下的方法不能直接测试4.static静态方法不能直接测试(不能带任何修饰符)5.不能给出现前四个条件中任意一个的方法添加@Test注解,否则执行满足@Test条件的方法也会出现initializationerror初始化异常...原创 2018-06-07 16:42:09 · 2622 阅读 · 0 评论 -
junit.framework.Assert 与org.junit.Assert
differences between 2 JUnit Assert classesThe old method (of Junit 3) was to mark the test-classes by extending junit.framework.TestCase. That inherited junit.framework.Assert itself and your test-c...转载 2018-06-15 14:17:35 · 2184 阅读 · 0 评论