When running a Dataflow unittest that uses DataflowAssert I get the exception
运行使用DataflowAssert的Dataflow unittest时,我得到了异常
java.lang.RuntimeException: DataflowAssert requires that JUnit and Hamcrest be linked in.
What dependencies do I need to add to my pom file to fix this exception?
我需要将哪些依赖项添加到我的pom文件中以修复此异常?
1 个解决方案
#1
2
Add the following dependencies to your pom file to link in the required libraries
将以下依赖项添加到您的pom文件以链接到所需的库中
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
#1
2
Add the following dependencies to your pom file to link in the required libraries
将以下依赖项添加到您的pom文件以链接到所需的库中
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>