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