Package org.testng.internal
Class ExpectedExceptionsHolder
java.lang.Object
org.testng.internal.ExpectedExceptionsHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class<?>[]
protected final IAnnotationFinder
private final IExpectedExceptionsHolder
protected final ITestNGMethod
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExpectedExceptionsHolder
(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Class<?>[]
findExpectedClasses
(IAnnotationFinder finder, ITestNGMethod method) private String
private boolean
boolean
noException
(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
-