| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| protected final IAnnotationFinder | |
| private final IExpectedExceptionsHolder | |
| protected final ITestNGMethod |
| Access | Constructor and Description |
|---|---|
| protected | ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder)
|
| Modifier and Type | Method and Description |
|---|---|
| private static Class | |
| private String | |
| private boolean | |
| public boolean | Returns: true if the exception that was just thrown is part of the expected exceptionsThe exception that was just thrown ite)
|
| public TestException | |
| public Throwable |
| expectedClasses | back to summary |
|---|---|
| private final Class<?>[] expectedClasses | |
| finder | back to summary |
|---|---|
| protected final IAnnotationFinder finder | |
| holder | back to summary |
|---|---|
| private final IExpectedExceptionsHolder holder | |
| method | back to summary |
|---|---|
| protected final ITestNGMethod method | |
| ExpectedExceptionsHolder | back to summary |
|---|---|
| protected ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder) | |
| findExpectedClasses | back to summary |
|---|---|
| private static Class | |
| getExpectedExceptionsPluralize | back to summary |
|---|---|
| private String getExpectedExceptionsPluralize() | |
| hasNoExpectedClasses | back to summary |
|---|---|
| private boolean hasNoExpectedClasses() | |
| isExpectedException | back to summary |
|---|---|
public boolean isExpectedException(Throwable ite)
| |
| noException | back to summary |
|---|---|
| public TestException noException(ITestNGMethod testMethod) | |
| wrongException | back to summary |
|---|---|
| public Throwable wrongException(Throwable ite) | |