【问题标题】:How can i run a a unit Test in Apache Camel我如何在 Apache Camel 中运行单元测试
【发布时间】:2016-10-31 23:12:03
【问题描述】:

我想知道 Maven 中的命令行来为 Apache Camel 运行单元测试。 请问有什么帮助吗? 关注

【问题讨论】:

    标签: unit-testing junit apache-camel tdd


    【解决方案1】:

    您可以使用普通的 maven 测试命令,例如 mvn clean test

    如果你必须运行特定的单元测试,那么你必须使用

    mvn -Dtest=TestClass#testMethod测试

    其中 TestClass 是 junit 测试类, testMethod 是实际运行的方法。

    更多关于骆驼测试的信息可以在这里访问..

    http://camel.apache.org/spring-testing.html

    【讨论】:

      猜你喜欢
      • 2017-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-07
      • 1970-01-01
      • 2012-03-21
      • 1970-01-01
      相关资源
      最近更新 更多