Package org.testng
Interface IExpectedExceptionsHolder
-
- All Known Implementing Classes:
RegexpExpectedExceptionsHolder
public interface IExpectedExceptionsHolder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetWrongExceptionMessage(java.lang.Throwable ite)Get the message in case the Throwable thrown by the test is not matching.booleanisThrowableMatching(java.lang.Throwable ite)Check if the Throwable thrown by the test is matching with the holder logic
-
-
-
Method Detail
-
getWrongExceptionMessage
java.lang.String getWrongExceptionMessage(java.lang.Throwable ite)
Get the message in case the Throwable thrown by the test is not matching.- Parameters:
ite- The Throwable thrown by the test- Returns:
- The message which will be displayed as test result
-
isThrowableMatching
boolean isThrowableMatching(java.lang.Throwable ite)
Check if the Throwable thrown by the test is matching with the holder logic- Parameters:
ite- The Throwable thrown by the test- Returns:
- true if the Throwable is matching with the holder logic, false otherwise
-
-