JUnit是Java单元测试框架,已经在Eclipse中默认安装。目前主流的有JUnit3和JUnit4。JUnit3中,测试用例需要继承TestCase类。JUnit4中,测试用例无需继承TestCase类,只需要使用@Test等注解。

只需要在builpath中addlibrary添加junit4即可

相关文章:

  • 2021-10-01
  • 2021-05-24
  • 2021-10-02
猜你喜欢
  • 2021-12-28
  • 2022-12-23
  • 2021-12-19
  • 2021-05-24
相关资源
相似解决方案