eclipse中,junit对单个方法进行测试时空指针异常(java.lang.NullPointerException)

来源:互联网 发布:山内一丰数据 编辑:程序博客网 时间:2024/06/06 08:25
  1. bulid path—configuration build path—Libraries
  2. Add Libraty—Junit
  3. 选择build path->configure build path->order and export,把Junit4包移到其他包的最前面,也就是项目包的下面。
问题解决。
阅读全文
0 0