public class DataHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
VERIFY_JSON_PART_INDICATOR |
static String |
VERIFY_RESPONSE_BODY_INDICATOR |
| Constructor and Description |
|---|
DataHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addOutputMessageToConfigParams(String outputParams,
String outboundMsg)
In outputParams get the params enclosed by <$> look up their values
in outboundMsg And Then add them to ConfigurationParams
|
static String |
convertTemplateToString(String templateFilePath) |
static File |
getFile(String filename) |
static int |
getIntFromString(String value) |
static String |
getTagValue(String requestBody,
String tag)
get value in between tags >value<
|
static String |
getTemplateFile(String file) |
static List<KeyValue> |
getValidationMap(String expected)
gets the map of the validation requirements
|
static String |
replaceParameters(String source)
replaces placeholder values with values from config properties
replaces only string values
|
static void |
validateCommand(String command,
String responseString,
String expectedString)
validates response against expected values
|
static void |
validateCommand(String command,
String responseString,
String expectedString,
String position)
validates response against expected values
|
public static final String VERIFY_JSON_PART_INDICATOR
public static final String VERIFY_RESPONSE_BODY_INDICATOR
public static String replaceParameters(String source)
source - public static int getIntFromString(String value)
public static List<KeyValue> getValidationMap(String expected)
expected - public static String getTagValue(String requestBody, String tag)
requestBody - tag - public static String convertTemplateToString(String templateFilePath) throws IOException
IOExceptionpublic static void addOutputMessageToConfigParams(String outputParams, String outboundMsg)
outputParams - outboundMsg - public static void validateCommand(String command, String responseString, String expectedString)
command - responseString - expectedString - Copyright © 2019. All rights reserved.