assertTypeExists

public static TypeLink assertTypeExists(PackageLink linkToPackage, Matcher<? super TypeLink> matcher)(source)

Asserts that the given TypeLink exists in the given PackageLink.

Return

the TypeLink if it exists

Parameters

linkToPackage

the PackageLink to search in

matcher

the Matcher to match the TypeLink against


public static TypeLink assertTypeExists(PackageLink linkToPackage, String name)(source)

Asserts that the given TypeLink exists in the given PackageLink.

Return

the TypeLink if it exists

Parameters

linkToPackage

the PackageLink to search in

name

the name of the TypeLink