Class RegexUtil
java.lang.Object
de.ikor.sip.foundation.testkit.util.RegexUtil
Util class for comparing a string to a pattern
-
Method Summary
-
Method Details
-
compare
Compare a string to a pattern- Parameters:
expected
- used to create a regex patternactual
- string that should be matched- Returns:
- true if string matches the pattern or if both are blank, otherwise false
-
reformatEscapeCharacter
Replaces escape characters- Parameters:
str
- - String to be reformated- Returns:
- String - either null if param null or reformatted param string
-