Package org.testng

Interface IExpectedExceptionsHolder

All Known Implementing Classes:
RegexpExpectedExceptionsHolder

public interface IExpectedExceptionsHolder
  • Method Summary

    Modifier and Type
    Method
    Description
    Get 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

      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