assertIsCtElementOfType
public static T assertIsCtElementOfType<T extends CtElement>(Class<T> expected, CtElement actual, Context context, PreCommentSupplier<? super ResultOfObject<Class<? extends CtElement>>> comment)(source)
Asserts that the given CtElement is of the given type.
Return
the actual element
Parameters
expected
the expected type
actual
the actual element
context
the context of this test
comment
the comment to be displayed in case of a failure
<T>
the expected type