sybil-hxl

Junit4单元测试报错:method \'initializationError\' not found: Opening the test classs

1.缺包

除了junit还需要hamcrest-core和hamcrest-library。

下载:https://mvnrepository.com/

2.包版本不对

junit-4.13.jar,对应可以用网上大家普遍用的 hamcrest-core-1.3.jar和hamcrest-library-1.3.jar

而最新版hamcrest-core-2.2.jar和hamcrest-library-2.2.jar不行。

 

 

 

 

参考:

https://www.cnblogs.com/zlslch/p/8961587.html

分类:

技术点:

相关文章:

  • 2021-11-13
  • 2021-03-31
  • 2021-07-19
  • 2021-11-30
  • 2021-10-22
  • 2021-08-09
  • 2021-09-20
猜你喜欢
  • 2021-08-09
  • 2021-08-09
  • 2021-12-10
  • 2021-09-11
  • 2021-08-09
  • 2021-05-27
  • 2021-08-09
相关资源
相似解决方案