Package nablarch.test.core.messaging
Class MessagingRequestTestSupport
java.lang.Object
nablarch.test.event.TestEventDispatcher
nablarch.test.core.standalone.StandaloneTestSupportTemplate
nablarch.test.core.messaging.MessagingRequestTestSupport
- Direct Known Subclasses:
- MessagingReceiveTestSupport
メッセージ同期応答用のテストサポートクラス。
 
本クラスを使用する際の注意事項
 本クラスは、入力データをキューにPUTする用途で、main側のコンポーネント定義ファイルを読み込む。
 その際、nablarch.fw.messaging.FwHeaderDefinition実装クラスは、
 "fwHeaderDefinition"という名前で登録されていなければならない。
 これ以外の名称を使用する場合は、getFwHeaderDefinitionName()をオーバライドすることにより
 本クラスが使用するnablarch.fw.messaging.FwHeaderDefinitionコンポーネント名を
 変更することができる。
 
- Author:
- T.Kawasaki
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected nablarch.test.core.messaging.MessagePool.Comparator結果検証用クラスprotected nablarch.test.core.messaging.MessagePool.Putterメッセージ投入用クラスFields inherited from class nablarch.test.core.standalone.StandaloneTestSupportTemplatetestClassFields inherited from class nablarch.test.event.TestEventDispatchertestName
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedコンストラクタ。
 サブクラスから使用されることを想定している。MessagingRequestTestSupport(Class<?> testClass) コンストラクタ。
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidafterExecuteTestShot(TestShot shot) テストショット実行後に必要な事後処理を行う。protected voidbeforeExecute(String sheetName) テスト実行前の処理を行う。
 サブクラスでオーバライドする。protected voidテストショット実行前に必要な事前処理を行う。protected TestShot.TestShotAroundcreateTestShotAround(Class<?> testClass) 前準備、結果検証を行うクラスのインスタンスを生成する。protected Stringnablarch.fw.messaging.FwHeaderDefinition実装クラスを システムリポジトリから取得するための名前を取得する。 本メソッドは、"fwHeaderDefinition"を返却する。Methods inherited from class nablarch.test.core.standalone.StandaloneTestSupportTemplateafterExecute, execute, execute, execute, executeIntegrationTestMethods inherited from class nablarch.test.event.TestEventDispatcherdispatchEventOfAfterTestClass, dispatchEventOfAfterTestMethod, dispatchEventOfBeforeTestClassAndBeforeSuit, dispatchEventOfBeforeTestMethod, getMethodName
- 
Field Details- 
setUpMessagesprotected nablarch.test.core.messaging.MessagePool.Putter setUpMessagesメッセージ投入用クラス
- 
expectedMessagesprotected nablarch.test.core.messaging.MessagePool.Comparator expectedMessages結果検証用クラス
 
- 
- 
Constructor Details- 
MessagingRequestTestSupportprotected MessagingRequestTestSupport()コンストラクタ。
 サブクラスから使用されることを想定している。
- 
MessagingRequestTestSupportコンストラクタ。- Parameters:
- testClass- テストクラス。
 
 
- 
- 
Method Details- 
createTestShotAround前準備、結果検証を行うクラスのインスタンスを生成する。- Specified by:
- createTestShotAroundin class- StandaloneTestSupportTemplate
- Parameters:
- testClass- テストクラス
- Returns:
- 生成したインスタンス
 
- 
beforeExecuteテスト実行前の処理を行う。
 サブクラスでオーバライドする。- Overrides:
- beforeExecutein class- StandaloneTestSupportTemplate
- Parameters:
- sheetName- シート名
 
- 
beforeExecuteTestShotテストショット実行前に必要な事前処理を行う。- Overrides:
- beforeExecuteTestShotin class- StandaloneTestSupportTemplate
- Parameters:
- shot- 実行直前のテストショット
 
- 
afterExecuteTestShotテストショット実行後に必要な事後処理を行う。- Overrides:
- afterExecuteTestShotin class- StandaloneTestSupportTemplate
- Parameters:
- shot- 実行直後のテストショット
 
- 
getFwHeaderDefinitionNamenablarch.fw.messaging.FwHeaderDefinition実装クラスを システムリポジトリから取得するための名前を取得する。 本メソッドは、"fwHeaderDefinition"を返却する。- Returns:
- "fwHeaderDefinition"
 
 
-