Package nablarch.test.core.standalone
Class TestShot
java.lang.Object
nablarch.test.core.standalone.TestShot
- Author:
- T.Kawasaki
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceテストの前準備、結果検証を行うインタフェース。
処理方式固有の前準備、結果検証ロジックを実装すること。 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringデフォルトのグループIDstatic final Stringコンポーネント設定ファイルstatic final String期待するログstatic final String要求電文の期待値を定義しているカラム名static final String期待するステータスコードstatic final StringDB期待値のグループIDstatic final Stringテストショット番号static final Stringリクエストパス必須カラムstatic final String応答電文を定義しているカラム名static final Stringセットアップ対象テーブルのグループIDstatic final Stringテストショットの説明static final StringユーザID -
Constructor Summary
ConstructorsConstructorDescriptionTestShot(String sheetName, Map<String, String> testData, DbAccessTestSupport dbSupport, TestShot.TestShotAround around, Class<?> testClass) コンストラクタ。 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidテストで使用するデータのキャッシュをクリアするfinal voidテストショットを実行する。テストデータを取得する。テストケース名称を取得する。コンポーネント設定ファイルを取得する。getNo()ケース番号を取得する。必須カラム一覧を取得する。final Stringシート名を取得する。voidputIfAbsent(String key, String value) 値が設定されていない場合、上書きする。
-
Field Details
-
NO
テストショット番号- See Also:
-
TITLE
テストショットの説明- See Also:
-
EXPECTED_STATUS_CODE
期待するステータスコード- See Also:
-
SETUP_TABLE
セットアップ対象テーブルのグループID- See Also:
-
DI_CONFIG
コンポーネント設定ファイル- See Also:
-
REQUEST_PATH
リクエストパス- See Also:
-
USER_ID
ユーザID- See Also:
-
EXPECTED_TABLE_GROUP_ID
DB期待値のグループID- See Also:
-
EXPECTED_MESSAGE_COLUMN
要求電文の期待値を定義しているカラム名- See Also:
-
RESPONSE_MESSAGE_COLUMN
応答電文を定義しているカラム名- See Also:
-
EXPECTED_LOG
期待するログ- See Also:
-
DEFAULT_GID
デフォルトのグループID- See Also:
-
REQUIRED_COLUMNS
必須カラム
-
-
Constructor Details
-
TestShot
public TestShot(String sheetName, Map<String, String> testData, DbAccessTestSupport dbSupport, TestShot.TestShotAround around, Class<?> testClass) コンストラクタ。- Parameters:
sheetName- シート名testData- テストデータdbSupport- DBサポートクラスaround- 前準備、結果検証を行うクラスtestClass- テストクラス
-
-
Method Details
-
executeTestShot
public final void executeTestShot()テストショットを実行する。 -
clearPreviousTestData
protected void clearPreviousTestData()テストで使用するデータのキャッシュをクリアする -
getRequiredColumns
必須カラム一覧を取得する。- Returns:
- 必須カラム一覧
-
getNo
ケース番号を取得する。- Returns:
- ケース番号
-
getCaseName
テストケース名称を取得する。- Returns:
- テストケース名称
-
get
テストデータを取得する。- Parameters:
key- カラム名- Returns:
- 値
-
getDiConfig
コンポーネント設定ファイルを取得する。- Returns:
- コンポーネント設定ファイル
-
putIfAbsent
値が設定されていない場合、上書きする。- Parameters:
key- キーvalue- 値
-
getSheetName
シート名を取得する。- Returns:
- シート名
-