Package org.testng

Interface IExpectedExceptionsHolder

    • Method Detail

      • getWrongExceptionMessage

        String getWrongExceptionMessage​(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​(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