Google cloud dataflow “如何修复异常”;DataflowAssert要求JUnit和Hamcrest在“中”链接;?
当运行使用DataflowAssert的DataFlowUnitTest时,我会得到异常Google cloud dataflow “如何修复异常”;DataflowAssert要求JUnit和Hamcrest在“中”链接;?,google-cloud-dataflow,Google Cloud Dataflow,当运行使用DataflowAssert的DataFlowUnitTest时,我会得到异常 java.lang.RuntimeException: DataflowAssert requires that JUnit and Hamcrest be linked in. 要修复此异常,我需要向pom文件中添加哪些依赖项?将以下依赖项添加到pom文件中,以链接到所需的库中 <dependency> <groupId>junit</groupId> <
java.lang.RuntimeException: DataflowAssert requires that JUnit and Hamcrest be linked in.
要修复此异常,我需要向pom文件中添加哪些依赖项?将以下依赖项添加到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>
朱尼特
朱尼特
4.11
测试
org.hamcrest
汉克雷斯特酒店
1.3
测试