No tests found Matching Methed

Environment description: spring test + junit 4.12 error when running test cases
Search results:
1. Change the junit version to: 4.8
2. Add hamcrest-core1.3
<dependencies>
       <dependency>
           <groupId>org.hamcrest</groupId>
           <artifactId> hamcrest-core</artifactId>
           <version>1.3</version>
       </dependency>
</dependencies>
junit4.12 depends on hamcrest1.3, and needs to import the hamcrest-core package
link : http://repo2.maven.org/ maven2/org/hamcrest/hamcrest-all/1.3/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326193125&siteId=291194637