assertCorrectThrows

public static MethodLink assertCorrectThrows(MethodLink link, Array<Matcher<? super TypeLink>> matchers)(source)

Asserts that the given MethodLink has the correct throws.

Return

the MethodLink if it has the correct throws

Parameters

link

the MethodLink to check

matchers

the Matchers to match the throws against