Package org.testng
Interface IExpectedExceptionsHolder
- All Known Implementing Classes:
RegexpExpectedExceptionsHolder
public interface IExpectedExceptionsHolder
-
Method Summary
Modifier and TypeMethodDescriptionGet the message in case the Throwable thrown by the test is not matching.boolean
Check if the Throwable thrown by the test is matching with the holder logic
-
Method Details
-
getWrongExceptionMessage
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
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
-