Package nablarch.test.core.standalone
Class StandaloneTestSupportTemplate
java.lang.Object
nablarch.test.event.TestEventDispatcher
nablarch.test.core.standalone.StandaloneTestSupportTemplate
- Direct Known Subclasses:
- BatchRequestTestSupport,- MessagingRequestTestSupport
独立型の処理方式のテスト実行をサポートするテンプレートクラス。
独立型処理方式のテストに共通の処理を提供する。 処理方式固有の処理はサブクラスにて実装する。
独立型処理方式のテストに共通の処理を提供する。 処理方式固有の処理はサブクラスにて実装する。
- Author:
- T.Kawasaki
- 
Field SummaryFieldsFields inherited from class nablarch.test.event.TestEventDispatchertestName
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedコンストラクタ。StandaloneTestSupportTemplate(Class<?> testClass) コンストラクタ。
- 
Method SummaryModifier and TypeMethodDescriptionprotected void全テストショット終了後の処理を行う。
 サブクラスでオーバライドする。protected voidafterExecuteTestShot(TestShot shot) テストショット実行後に必要な事後処理を行う。protected voidbeforeExecute(String sheetName) テスト実行前の処理を行う。
 サブクラスでオーバライドする。protected voidテストショット実行前に必要な事前処理を行う。protected abstract TestShot.TestShotAroundcreateTestShotAround(Class<?> testClass) 前準備、結果検証を行うクラスのインスタンスを生成する。protected final voidexecute()テストを実行する。
 テストに使用するシート名はメソッド名と同じとみなされる。 本メソッドはサブクラスからのみ使用できる。final voidテストを実行する。final voidテストを実行する。final voidexecuteIntegrationTest(String sheetName) 結合テストを実行する。Methods inherited from class nablarch.test.event.TestEventDispatcherdispatchEventOfAfterTestClass, dispatchEventOfAfterTestMethod, dispatchEventOfBeforeTestClassAndBeforeSuit, dispatchEventOfBeforeTestMethod, getMethodName
- 
Field Details- 
testClassテストクラス
 
- 
- 
Constructor Details- 
StandaloneTestSupportTemplateコンストラクタ。- Parameters:
- testClass- テストクラス
 
- 
StandaloneTestSupportTemplateprotected StandaloneTestSupportTemplate()コンストラクタ。
 
- 
- 
Method Details- 
executeテストを実行する。- Parameters:
- sheetName- シート名
 
- 
executeテストを実行する。- Parameters:
- sheetName- シート名
- setUpPerTestShot- ショット毎にDBセットアップを行うかどうか
 
- 
executeIntegrationTest結合テストを実行する。- Parameters:
- sheetName- シート名
 
- 
executeprotected final void execute()テストを実行する。
 テストに使用するシート名はメソッド名と同じとみなされる。 本メソッドはサブクラスからのみ使用できる。
- 
beforeExecuteTestShotテストショット実行前に必要な事前処理を行う。- Parameters:
- shot- 実行直前のテストショット
 
- 
afterExecuteTestShotテストショット実行後に必要な事後処理を行う。- Parameters:
- shot- 実行直後のテストショット
 
- 
createTestShotAround前準備、結果検証を行うクラスのインスタンスを生成する。- Parameters:
- testClass- テストクラス
- Returns:
- 生成したインスタンス
 
- 
beforeExecuteテスト実行前の処理を行う。
 サブクラスでオーバライドする。- Parameters:
- sheetName- シート名
 
- 
afterExecuteprotected void afterExecute()全テストショット終了後の処理を行う。
 サブクラスでオーバライドする。
 
-