Package org.testng.internal.invokers
Class ExpectedExceptionsHolder
java.lang.Object
org.testng.internal.invokers.ExpectedExceptionsHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class<?>[]protected final IAnnotationFinderprivate final IExpectedExceptionsHolderprotected final ITestNGMethod -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Class<?>[]findExpectedClasses(IAnnotationFinder finder, ITestNGMethod method) private Stringprivate booleanbooleannoException(ITestNGMethod testMethod) wrongException(Throwable ite)
-
Field Details
-
finder
-
method
-
expectedClasses
-
holder
-
-
Constructor Details
-
ExpectedExceptionsHolder
protected ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder)
-
-
Method Details
-
findExpectedClasses
-
isExpectedException
- Parameters:
ite- The exception that was just thrown- Returns:
- true if the exception that was just thrown is part of the expected exceptions
-
wrongException
-
noException
-
hasNoExpectedClasses
private boolean hasNoExpectedClasses() -
getExpectedExceptionsPluralize
-