在使用junit单元测试时,引入了junit-4.12.jar。然后报错:initializationError
在网上搜了下还需要因为hamcrest-core包,我引入的是hamcrest-core-1.3.jar这个版本,测试可以使用,特此记录一下。
另外附上junit-4.12.jar 和hamcrest-core-1.3.jar
在使用junit单元测试时,引入了junit-4.12.jar。然后报错:initializationError
在网上搜了下还需要因为hamcrest-core包,我引入的是hamcrest-core-1.3.jar这个版本,测试可以使用,特此记录一下。
另外附上junit-4.12.jar 和hamcrest-core-1.3.jar