assertMethodExists

public static MethodLink assertMethodExists(TypeLink link, Matcher<? super MethodLink> matcher)(source)

Assert that a method with the given characteristics exists in the given TypeLink.

Return

the MethodLink if it exists

Parameters

link

the TypeLink to search in

matcher

the Matcher to match the MethodLink against