legacySubComponent

open fun legacySubComponent(subComponent: SubComponent): Condition<InspectableComponent>

Use an old-style SubComponent in an assertj Condition.

For instance:


  assertThat(c, mComponent)
   .has(
       subComponentWith(
           c,
           legacySubComponent(
               SubComponent.of(
                   FooterComponent.create(c).text("Rockstar Developer").build()))));

Return

A condition to be used with assertThat

Parameters

subComponent

The constructed of.