public class RegexpExpectedExceptionsHolder extends java.lang.Object implements IExpectedExceptionsHolder
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_REGEXP |
| Constructor and Description |
|---|
RegexpExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getWrongExceptionMessage(java.lang.Throwable ite)
Get the message in case the Throwable thrown by the test is not matching.
|
boolean |
isThrowableMatching(java.lang.Throwable ite)
message / regEx .* other
null true false
non-null true match
|
public static final java.lang.String DEFAULT_REGEXP
public RegexpExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method)
public boolean isThrowableMatching(java.lang.Throwable ite)
isThrowableMatching in interface IExpectedExceptionsHolderite - The Throwable thrown by the testpublic java.lang.String getWrongExceptionMessage(java.lang.Throwable ite)
IExpectedExceptionsHoldergetWrongExceptionMessage in interface IExpectedExceptionsHolderite - The Throwable thrown by the test