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