@SuppressWarnings("unchecked") @Test public void testCreateUiUpdater() { when(propertyDispatcher.pull(any(Aspect.class))).thenReturn(true); assertThat(componentWrapper.getComponent().isEnabled(), is(false)); Handler handler = aspectDefinition.createUiUpdater(propertyDispatcher, componentWrapper); verify(propertyDispatcher, times(1)).pull(any(Aspect.class)); assertThat(componentWrapper.getComponent().isEnabled(), is(true)); handler.apply(); verify(propertyDispatcher, times(1)).pull(any(Aspect.class)); }
@Override public Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper) { super.createUiUpdater(propertyDispatcher, componentWrapper).apply(); return Handler.NOP_HANDLER; }
StaticModelToUiAspectDefinition extends ModelToUiAspectDefinition<VALUE_TYPE> { @Override public Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper) { super.createUiUpdater(propertyDispatcher, componentWrapper).apply(); return Handler.NOP_HANDLER; } }
StaticModelToUiAspectDefinition extends ModelToUiAspectDefinition<VALUE_TYPE> { @Override public Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper) { super.createUiUpdater(propertyDispatcher, componentWrapper).apply(); return Handler.NOP_HANDLER; }  }
StaticModelToUiAspectDefinition extends ModelToUiAspectDefinition<VALUE_TYPE> { @Override public Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper) { super.createUiUpdater(propertyDispatcher, componentWrapper).apply(); return Handler.NOP_HANDLER; }  @Override Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper); }
StaticModelToUiAspectDefinition extends ModelToUiAspectDefinition<VALUE_TYPE> { @Override public Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper) { super.createUiUpdater(propertyDispatcher, componentWrapper).apply(); return Handler.NOP_HANDLER; }  @Override Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper);  }