typeIs
Matcher that succeeds if the class of an Component exactly matches the provided component class.
Note that this won't match sub-types. This should not have any real-world implications as Components are not sub-classed.
Example Use
assertThat(c, mComponent)
.has(
allOf(
deepSubComponentWith(c, typeIs(Text.class)),
subComponentWith(c, typeIs(MyCustomComponent.class))));
Content copied to clipboard