public final class RegExAssert extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertMatches(String pattern,
String string)
Asserts that the given string matches the given pattern.
|
static void |
assertMatches(String message,
String pattern,
String string)
Asserts that the given string matches the given pattern.
|
public static void assertMatches(String message, String pattern, String string)
AssertionError thrown
starts with the given message, which may be null if no such
custom message prefix is desired.message - The message.pattern - The pattern.string - The string.Copyright © 2017. All Rights Reserved.