Package org.opentestfactory.test.harness
Class JsonVariableMappings
java.lang.Object
org.opentestfactory.test.harness.JsonVariableMappings
Very simple key-value templating system. Should this get more complicated, we should look for a
suitable templating library before making this one more sophisticated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonVariableMappingsreplaceMappings(InputStream bodyStream) replaceMappings(String bodyString) searchForStrayVariableConstructs(String expectedPayload) withAdditionalIntegerMapping(String key, int value) withAdditionalStringMapping(String key, String value) static JsonVariableMappingswithIntegerMapping(String key, Integer value) static JsonVariableMappingswithStringMapping(String key, String value)
-
Constructor Details
-
JsonVariableMappings
-
-
Method Details
-
noMappings
-
withStringMapping
-
withIntegerMapping
-
searchForStrayVariableConstructs
-
withAdditionalStringMapping
-
withAdditionalIntegerMapping
-
replaceMappings
- Throws:
IOException
-
replaceMappings
-