我已經爲Test_flow創建了簡單的Test Suit,但是當我嘗試運行該流時出現錯誤。創建名爲'Test_flow'的bean時出錯:無法創建內部bean'(內部bean)
java.lang.RuntimeException: org.mule.api.config.ConfigurationException: Error creating bean with name 'Test_flow': Cannot create inner bean '(inner bean)#6a12c7a8' of type [com.mulesoft.module.batch.BatchInputBlock] while setting bean property 'inputBlock'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6a12c7a8': Cannot create inner bean '(inner bean)#1d408060' of type [org.mule.config.spring.factories.PollingMessageSourceFactoryBean] while setting bean property 'messageSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1d408060': Cannot create inner bean '(inner bean)#1a500561' of type [com.sungardas.osstools.modules.servicenowrest.generated.processors.SysHistorySetQueryAllValuesMessageProcessor] while setting bean property 'messageProcessor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1a500561': Cannot resolve reference to bean 'ServiceNowREST__Default_Configuration' while setting bean property 'moduleObject'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ServiceNowREST__Default_Configuration' is defined (org.mule.api.lifecycle.InitialisationException)
at org.mule.munit.runner.mule.SuiteRunner.<init>(SuiteRunner.java:59)
at org.mule.munit.runner.mule.SuiteRunner.<init>(SuiteRunner.java:45)
at org.mule.munit.remote.RemoteRunner.runTestSuite(RemoteRunner.java:75)
at org.mule.munit.remote.RemoteRunner.run(RemoteRunner.java:55)
at org.mule.munit.remote.RemoteRunner.main(RemoteRunner.java:39)
步驟我演出:
- 使用Munit測試套嚮導創建基本的測試西裝Test_flow和子流
- 在測試服不添加任何東西(即嘲笑,變量,斷言條件)
- 運行基本測試套件和每一個時間我得到這個錯誤
我使用的是nypoint studio 6.2具有3.8.3 mule運行時的EE版本。
請注意他的意思是: 「請確保您導入包含豆命名ServiceNowREST__Default_Configuration文件」 MUnit只會導入包含如果你右擊流經的文件或者如果您使用嚮導選擇的那些。它不知道如何反思應用程序,以導入所有這些問題所需的必要資源。 – Dds