public class RegularExpressionTestBase extends Object
| Constructor and Description |
|---|
RegularExpressionTestBase() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertRegexMatch(String regex,
String input,
String... expectedValues)
Convenience method to test regular expressions.
|
static void |
assertRegexMatchNG(String regex,
String input,
String... expectedValues)
Convenience method to test regular expressions.
|
static void |
assertRegexSubMatch(String regex,
String input,
String... expectedValues)
Convenience method to test regular expressions.
|
static void |
assertRegexSubMatchNG(String regex,
String input,
String... expectedValues)
Convenience method to test regular expressions.
|
public static void assertRegexMatch(String regex, String input, String... expectedValues)
assertRegexSubMatch(String,String,String...) but regex must match all of input.regex - the regular expression to testinput - test stringexpectedValues - list length must match the the group count. an empty list asserts that the
pattern does not match.public static void assertRegexSubMatch(String regex, String input, String... expectedValues)
regex - the regular expression to testinput - test stringexpectedValues - list length must match the the group count. an empty list asserts that the
pattern does not match.public static void assertRegexMatchNG(String regex, String input, String... expectedValues)
assertRegexSubMatchNG(String,String,String...) but regex must match all of input.regex - the regular expression to testinput - test stringexpectedValues - (group name, expected group content) pairs. number of pairs must match the the
group count. an empty list asserts that the pattern does not match.public static void assertRegexSubMatchNG(String regex, String input, String... expectedValues)
regex - the regular expression to testinput - test stringexpectedValues - (group name, expected group content) pairs. number of pairs must match the the
group count. an empty list asserts that the pattern does not match.Copyright © 2016 Github jjYBdx4IL Projects. All rights reserved.