Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Component |
getComponent() |
Class<? extends Component> |
getComponentType() |
int |
hashCode() |
static <any> |
legacySubComponent(SubComponent subComponent)
Use an old-style
SubComponent in an assertj Condition. |
static SubComponent |
of(Class<? extends Component> componentType) |
static <T extends Component> |
of(T component) |
String |
toString() |
public static SubComponent of(Class<? extends Component> componentType)
public static <T extends Component> SubComponent of(T component)
public Component getComponent()
public static <any> legacySubComponent(SubComponent subComponent)
SubComponent
in an assertj Condition.
For instance:
assertThat(c, mComponent)
.has(
subComponentWith(
c,
legacySubComponent(
SubComponent.of(
FooterComponent.create(c).text("Rockstar Developer").build()))));
subComponent
- The constructed of(Component)
.org.assertj.core.api.Assertions#assertThat