public class ExpectedExceptionsHolder
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected IAnnotationFinder |
finder |
|
protected ITestNGMethod |
method |
| Modifier | Constructor | Description |
|---|---|---|
protected |
ExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method,
IExpectedExceptionsHolder holder) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isExpectedException(java.lang.Throwable ite) |
|
TestException |
noException(ITestNGMethod testMethod) |
|
java.lang.Throwable |
wrongException(java.lang.Throwable ite) |
protected final IAnnotationFinder finder
protected final ITestNGMethod method
protected ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder)
public boolean isExpectedException(java.lang.Throwable ite)
ite - The exception that was just thrownpublic java.lang.Throwable wrongException(java.lang.Throwable ite)
public TestException noException(ITestNGMethod testMethod)