@Test public final void testCreateUiUpdater() { ApplicableTypeAspectDefinition aspectDef = ApplicableTypeAspectDefinition .ifComponentTypeIs(TestUiComponent.class, aspectDefinition); when(aspectDefinition.createUiUpdater(propertyDispatcher, componentWrapper)).thenReturn(modelUpdated); Handler uiUpdater = aspectDef.createUiUpdater(propertyDispatcher, componentWrapper); verify(aspectDefinition).createUiUpdater(propertyDispatcher, componentWrapper); assertThat(uiUpdater, is(modelUpdated)); }
public static ApplicableTypeAspectDefinition ifComponentTypeIs(Class<?> applicableType, LinkkiAspectDefinition wrappedAspectDefinition) { return new ApplicableTypeAspectDefinition(wrappedAspectDefinition, applicableType); }
ApplicableTypeAspectDefinition extends ApplicableAspectDefinition { public static ApplicableTypeAspectDefinition ifComponentTypeIs(Class<?> applicableType, LinkkiAspectDefinition wrappedAspectDefinition) { return new ApplicableTypeAspectDefinition(wrappedAspectDefinition, applicableType); } }
ApplicableTypeAspectDefinition extends ApplicableAspectDefinition { public static ApplicableTypeAspectDefinition ifComponentTypeIs(Class<?> applicableType, LinkkiAspectDefinition wrappedAspectDefinition) { return new ApplicableTypeAspectDefinition(wrappedAspectDefinition, applicableType); } private  ApplicableTypeAspectDefinition(LinkkiAspectDefinition wrappedAspectDefinition, Class<?> applicableType); }
ApplicableTypeAspectDefinition extends ApplicableAspectDefinition { public static ApplicableTypeAspectDefinition ifComponentTypeIs(Class<?> applicableType, LinkkiAspectDefinition wrappedAspectDefinition) { return new ApplicableTypeAspectDefinition(wrappedAspectDefinition, applicableType); } private  ApplicableTypeAspectDefinition(LinkkiAspectDefinition wrappedAspectDefinition, Class<?> applicableType); static ApplicableTypeAspectDefinition ifComponentTypeIs(Class<?> applicableType,
            LinkkiAspectDefinition wrappedAspectDefinition); }
ApplicableTypeAspectDefinition extends ApplicableAspectDefinition { public static ApplicableTypeAspectDefinition ifComponentTypeIs(Class<?> applicableType, LinkkiAspectDefinition wrappedAspectDefinition) { return new ApplicableTypeAspectDefinition(wrappedAspectDefinition, applicableType); } private  ApplicableTypeAspectDefinition(LinkkiAspectDefinition wrappedAspectDefinition, Class<?> applicableType); static ApplicableTypeAspectDefinition ifComponentTypeIs(Class<?> applicableType,
            LinkkiAspectDefinition wrappedAspectDefinition);  }