Package org.testng.internal
Class ExpectedExceptionsHolder
- java.lang.Object
-
- org.testng.internal.ExpectedExceptionsHolder
-
public class ExpectedExceptionsHolder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected IAnnotationFinder
finder
protected ITestNGMethod
method
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isExpectedException(java.lang.Throwable ite)
TestException
noException(ITestNGMethod testMethod)
java.lang.Throwable
wrongException(java.lang.Throwable ite)
-
-
-
Field Detail
-
finder
protected final IAnnotationFinder finder
-
method
protected final ITestNGMethod method
-
-
Constructor Detail
-
ExpectedExceptionsHolder
protected ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder)
-
-
Method Detail
-
isExpectedException
public boolean isExpectedException(java.lang.Throwable ite)
- Parameters:
ite
- The exception that was just thrown- Returns:
- true if the exception that was just thrown is part of the expected exceptions
-
wrongException
public java.lang.Throwable wrongException(java.lang.Throwable ite)
-
noException
public TestException noException(ITestNGMethod testMethod)
-
-