2017-01-16 27 views
0

Test_flowの簡単なテストスーツを作成しましたが、そのフローを実行しようとするとエラーが発生します。 MUNITテストスーツ・ウィザードを使用して名前が 'Test_flow'のBeanを作成中にエラーが発生しました:内部Beanを作成できません '(内部Bean)

  1. はTest_flowのための基本的なテストスーツを作成し、サブ
  2. 流れるテストスーツには何も添加していない(すなわちモック、変数を、条件をアサート):私は実行さ

    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) 
    

    手順

  3. ランは、基本的なテストスーツとすべてのタイミングは、私がAを使用しています

そのエラーを取得していますnypoint studio 6.2 EEバージョン3.8.3 muleランタイム。

答えて

0

再生できません。 MavenプロジェクトやMuleプロジェクトはありますか?あなたのプロジェクトに関する追加情報を追加できればいいでしょう。

1

テストスイートでXML設定ファイルをインポートしましたか?

例:

<spring:beans> 
    <spring:import resource="classpath:property-test-config.xml"/> 
    <spring:import resource="classpath:mock-config-connectors.xml"/> 
    <spring:import resource="classpath:contactUpdates-config.xml"/> 
</spring:beans> 
+0

を解決します、彼は意味注意してください: 「あなたはServiceNowREST__Default_Configurationという名前のBeanを含むファイルをインポートしていることを確認してください」 MUNITはあなたが右クリックをすれば、彼らが流れ含むファイルをインポートしますウィザードを使用する場合は選択されています。それは私のこの種の問題につながるすべての必要なリソースをインポートするためにアプリをイントロスペクションする方法を知らない。 – Dds

0

あなたの例外から、それは " 'ServiceNowREST__Default_Configuration' という名前ませBeanが定義されていない" と述べています。 "ServiceNowREST__Default_Configuration"が定義されているミュール設定ファイルがテストスイートのクラスパスに存在するかどうかを確認してください。クラスパスにファイルを追加すると、問題に

関連する問題