我在 4.10 使用 junit,在 1.3 声明 hamcrest-core,在 1.3 声明 hamcrest-library。我的问题是 hamcrest-library 和 hamcrest-core 嵌入在 junit 4.10 中。junit 4.11呢?
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>