@Test public void testUpdateIntModel() throws Exception { final String initialStringValue = controller.getStringModel().getValue(); final int initialIntValue = controller.getIntModel().getValue(); controller.updateIntModel(mock(AjaxBehaviorEvent.class)); assertThat(controller.getStringModel().getValue(), is(initialStringValue)); assertThat(controller.getIntModel().getValue(), is(initialIntValue + UPDATED_INT_VALUE)); controller.reset(); assertThat(controller.getIntModel().getValue(), is(initialIntValue)); }
public void updateIntModel(AjaxBehaviorEvent event) { intModel.setValue(intModel.getValue() + UPDATE_INT_VALUE); eduContext.update("int-model-changed"); }
DemoController implements Serializable { public void updateIntModel(AjaxBehaviorEvent event) { intModel.setValue(intModel.getValue() + UPDATE_INT_VALUE); eduContext.update("int-model-changed"); } }
DemoController implements Serializable { public void updateIntModel(AjaxBehaviorEvent event) { intModel.setValue(intModel.getValue() + UPDATE_INT_VALUE); eduContext.update("int-model-changed"); }  }
DemoController implements Serializable { public void updateIntModel(AjaxBehaviorEvent event) { intModel.setValue(intModel.getValue() + UPDATE_INT_VALUE); eduContext.update("int-model-changed"); }  DemoModel<String> getStringModel(); DemoModel<Integer> getIntModel(); void setEduContext(EventDrivenUpdatesContext eduContext); EventDrivenUpdatesContext getEduContext(); void updateStringModel(AjaxBehaviorEvent event); void updateIntModel(AjaxBehaviorEvent event); void reset(); }
DemoController implements Serializable { public void updateIntModel(AjaxBehaviorEvent event) { intModel.setValue(intModel.getValue() + UPDATE_INT_VALUE); eduContext.update("int-model-changed"); }  DemoModel<String> getStringModel(); DemoModel<Integer> getIntModel(); void setEduContext(EventDrivenUpdatesContext eduContext); EventDrivenUpdatesContext getEduContext(); void updateStringModel(AjaxBehaviorEvent event); void updateIntModel(AjaxBehaviorEvent event); void reset();  }