@Test public void executeWithPlanningTaskExisting() { PlanningTaskImpl planningTask = mock(PlanningTaskImpl.class); when(persistenceContext.find(PlanningTaskImpl.class, TASK_ID)).thenReturn(planningTask); command.execute(taskContext); verifyPlanningTaskMerged(planningTask); }
@Override public Object execute(Context context) { super.execute(context); saveOrUpdatePlanningTask(planningItem); return null; }
SavePlanningItemCommand extends PlanningCommand { @Override public Object execute(Context context) { super.execute(context); saveOrUpdatePlanningTask(planningItem); return null; } }
SavePlanningItemCommand extends PlanningCommand { @Override public Object execute(Context context) { super.execute(context); saveOrUpdatePlanningTask(planningItem); return null; } SavePlanningItemCommand(PlanningItem planningItem); }
SavePlanningItemCommand extends PlanningCommand { @Override public Object execute(Context context) { super.execute(context); saveOrUpdatePlanningTask(planningItem); return null; } SavePlanningItemCommand(PlanningItem planningItem); @Override Object execute(Context context); }
SavePlanningItemCommand extends PlanningCommand { @Override public Object execute(Context context) { super.execute(context); saveOrUpdatePlanningTask(planningItem); return null; } SavePlanningItemCommand(PlanningItem planningItem); @Override Object execute(Context context);  }