Package de.joergdev.mosy.backend.util
Class MockServicesUtil
java.lang.Object
de.joergdev.mosy.backend.util.MockServicesUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReplaces all occurrences of "{whatever}" by "%".static booleanjsonContainsJson(String stack, String needle) static booleanstringContainsString(String stack, String needle) static booleanxmlContainsXml(String stack, String needle)
-
Constructor Details
-
MockServicesUtil
public MockServicesUtil()
-
-
Method Details
-
stringContainsString
-
xmlContainsXml
-
jsonContainsJson
-
getUrlWithReplacedDynVars
Replaces all occurrences of "{whatever}" by "%". Example: test/{id}/a/{hello} => test/%/a/%- Parameters:
url-- Returns:
- String - url with replaced dynamic variables
-