【问题标题】:NoSuchBeanDefinitionException thrown by Munit Test case for a flow with a Reference Exception Strategy带有引用异常策略的流的 Munit 测试用例抛出 NoSuchBeanDefinitionException
【发布时间】:2017-02-23 08:57:49
【问题描述】:

我正在尝试为具有引用异常策略的流运行 Munit 测试用例。但是,我得到以下异常。

在设置 bean 属性“exceptionListener”时无法解析对 bean“Main_Choice_Exception_Strategy”的引用;嵌套异常是 org.springframework.beans.factory.NoSuchBeanDefinitionException:没有定义名为“Main_Choice_Exception_Strategy”的 bean (org.mule.api.lifecycle.InitialisationException)。

请帮助解决这个问题。

【问题讨论】:

    标签: mule mule-studio mule-component


    【解决方案1】:

    当测试套件没有导入具有 Main_Choice_Exception_Strategy 的文件时,将出现无法解析对 bean 'Main_Choice_Exception_Strategy' 的引用。将文件的导入添加到测试套件将解决问题

    【讨论】:

    • 非常感谢您的回答。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多