【问题标题】:Junit in Jboss fuse : Waiting for dependencyJboss fuse中的Junit:等待依赖
【发布时间】:2017-04-24 14:20:44
【问题描述】:

我为骆驼路线编写了 Junit。该路由接受 json 输入。该服务正在构建和安装良好。我已经在 karaf 中安装了 JsonPath 包,但是在运行我的 Junit 时出现以下异常。我已将 maven 依赖项指定为 compile。

<dependency>
  <groupId>com.jayway.jsonpath</groupId>
  <artifactId>json-path</artifactId>
  <version>1.2.0</version>
  <scope>compile</scope>
</dependency> 

异常信息:

Bundle Test 正在等待依赖项 [(&(language=jsonpath)(objectClass=org.apache.camel.spi.LanguageResolver))]

【问题讨论】:

    标签: json maven junit jbossfuse


    【解决方案1】:

    我认为问题出在骆驼测试中。如果您提供来源,也许我们可以给您一些想法。

    顺便说一句,有关“如何编写有关某事的 Camel 测试”的良好参考资料,您可以查看官方 repo。我附上 jsonPath 组件测试的链接:

    https://github.com/apache/camel/tree/master/components/camel-jsonpath/src/test/java/org/apache/camel/jsonpath

    【讨论】:

    • 问题是因为我错过了 pom.json 中的骆驼 JsonPath 依赖。刚刚添加它并且工作正常。
    猜你喜欢
    • 2016-01-14
    • 2013-06-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-17
    • 2018-08-06
    • 1970-01-01
    相关资源
    最近更新 更多