【问题标题】:intellij cant find Flink Test Harness utilintellij 找不到 Flink 测试工具
【发布时间】:2022-01-22 00:43:37
【问题描述】:

我正在尝试使用来自 Apache Flink (org.apache.flink.streaming.util.OneInputStreamOperatorTestHarness) 的 OneInputStreamOperatorTestHarness,但 Intellj 无法解析符号。

我关注了offical docs,这个官方blog on the flink website 还有这个stackoverflow question

【问题讨论】:

  • 添加依赖后是否尝试在构建工具窗口中运行reload?
  • 你能更详细地说明你尝试了什么吗?

标签: java testing intellij-idea apache-flink


【解决方案1】:

尝试在你的 build.gradle 的依赖块中添加以下内容:

testImplementation 'org.apache.flink:flink-test-utils_2.11:1.14.2'
testImplementation 'org.apache.flink:flink-runtime:1.14.2'
testImplementation 'org.apache.flink:flink-streaming-java_2.11:1.14.2:tests'

参考:https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/dev/datastream/testing/

【讨论】:

    猜你喜欢
    • 2012-04-18
    • 2022-09-23
    • 1970-01-01
    • 2014-10-20
    • 2014-04-02
    • 1970-01-01
    • 1970-01-01
    • 2019-07-26
    相关资源
    最近更新 更多