spring集成junit出现initializationerror:method initializationerror not found问题处理
问题原因:缺少相关jar包
除了导入
junit-4.12.jar
还要导入
hamcrest-core-1.3.RC2.jar
hamcrest-library-1.3.RC2.jar
maven坐标
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3.RC2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>1.3.RC2</version>
<scope>test</scope>
</dependency>