@Published public class TestSupport extends TestEventDispatcher
コンストラクタと説明 |
---|
TestSupport(Class<?> testClass)
コンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
static Map<String[]> |
convert(Map commaSeparated)
Mapに格納されたvalueの型変換を行う。
|
String |
getBookName()
ブック名を取得する。
|
List<TableData> |
getExpectedTableData(String sheetName,
String... groupId)
期待するTableDataを取得する。
|
List<Map> |
getListMap(String sheetName,
String id)
List-Map形式でデータを取得する。
|
List<Map<String[]>> |
getListParamMap(String sheetName,
String id)
List-Map形式でデータを取得する。
|
Map |
getMap(String sheetName,
String id)
Map形式でデータを取得する。
|
Map<String[]> |
getParameterMap(String sheetName,
String id)
HTTPリクエストパラメータ作成用のMapを取得する。
|
String |
getPathOf(String resourceName)
テストデータのパスを取得する。
|
String |
getResourceName(String sheetName)
リソース名を取得する。
|
List<TableData> |
getSetupTableData(String sheetName,
String... groupId)
準備用のTableDataを取得する。
|
TestDataParser |
getTestDataParser()
テストデータパーサを取得する。
|
static void |
setThreadContextValues(Map contextValues)
ThreadContextに値を設定する。
|
void |
setThreadContextValues(String sheetName,
String id)
ThreadContextに値を設定する。
|
getMethodName
@Published public TestSupport(Class<?> testClass)
testClass
- テスト対象クラスpublic void setThreadContextValues(String sheetName, String id)
sheetName
- 取得元シート名id
- 取得元IDpublic static void setThreadContextValues(Map contextValues)
contextValues
- ThreadContextに設定する値@Published public Map<String[]> getParameterMap(String sheetName, String id)
sheetName
- シート名id
- ID@Published public Map getMap(String sheetName, String id)
sheetName
- シート名id
- IDpublic static Map<String[]> convert(Map commaSeparated)
commaSeparated
- 変換対象オブジェクト@Published public List<Map> getListMap(String sheetName, String id)
sheetName
- シート名id
- ID@Published public List<Map<String[]>> getListParamMap(String sheetName, String id)
HttpRequest
のリクエストパラメータと同じ形式で取得できる。
エンティティのコンストラクタにそのまま渡したい場合に使用する。sheetName
- シート名id
- IDnablarch.fw.web.HttpRequest#getParamMap()
public List<TableData> getSetupTableData(String sheetName, String... groupId)
sheetName
- 取得元のシート名groupId
- グループIDpublic List<TableData> getExpectedTableData(String sheetName, String... groupId)
sheetName
- 取得元のシート名groupId
- グループIDpublic String getPathOf(String resourceName)
resourceName
- リソース名public String getBookName()
public String getResourceName(String sheetName)
sheetName
- シート名public final TestDataParser getTestDataParser()