org.testng.IExpectedExceptionsHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
Testing framework for Java
package org.testng;
public interface IExpectedExceptionsHolder {
/**
* Get the message in case the Throwable thrown by the test is not matching.
*
* @param ite The Throwable thrown by the test
* @return The message which will be displayed as test result
*/
String getWrongExceptionMessage(Throwable ite);
/**
* Check if the Throwable thrown by the test is matching with the holder logic
*
* @param ite The Throwable thrown by the test
* @return true if the Throwable is matching with the holder logic, false otherwise
*/
boolean isThrowableMatching(Throwable ite);
}