public class LocalizationHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LOCAL |
| Constructor and Description |
|---|
LocalizationHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static List<String> |
getColumnHeaders(org.apache.commons.csv.CSVParser parser)
gets the list of the column in csv file
|
protected static File |
getCsvFile(String filename) |
protected static Map<String,String> |
jsonFileToMap(String filePath) |
protected static Map<String,String> |
jsonStringToMap(String jsonString) |
protected static void |
loadCsvFileContent()
loads the content of the csv file
|
protected static void |
localizationLoadJson(String fileName)
loads localization map from a json file to the test object data
|
protected static void |
localizationSetupCsv(String language)
sets the language for csv localization file
|
protected static String |
localize(String key) |
protected static String |
localizeFromCsv(String value) |
protected static String |
localizeFromJson(String key)
gets local language from json file specified in properties file
|
public static String DEFAULT_LOCAL
protected static void localizationSetupCsv(String language)
language - protected static String localizeFromJson(String key)
key - protected static void localizationLoadJson(String fileName)
fileName - protected static void loadCsvFileContent()
Exceptionprotected static List<String> getColumnHeaders(org.apache.commons.csv.CSVParser parser)
parser - Copyright © 2020. All rights reserved.