Top Methods
org.testng

public Interface IExpectedExceptionsHolder

Known Direct Implementers
org.testng.internal.RegexpExpectedExceptionsHolder

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The message which will be displayed as test result
getWrongExceptionMessage
(Throwable
The Throwable thrown by the test
ite
)

Get the message in case the Throwable thrown by the test is not matching.

public boolean

Returns:

true if the Throwable is matching with the holder logic, false otherwise
isThrowableMatching
(Throwable
The Throwable thrown by the test
ite
)

Check if the Throwable thrown by the test is matching with the holder logic

Method Detail

getWrongExceptionMessageback to summary
public String getWrongExceptionMessage(Throwable ite)

Get the message in case the Throwable thrown by the test is not matching.

Parameters
ite:Throwable

The Throwable thrown by the test

Returns:String

The message which will be displayed as test result

isThrowableMatchingback to summary
public boolean isThrowableMatching(Throwable ite)

Check if the Throwable thrown by the test is matching with the holder logic

Parameters
ite:Throwable

The Throwable thrown by the test

Returns:boolean

true if the Throwable is matching with the holder logic, false otherwise