@Test public void executePlanning() { PlanningItem item = new PlanningItem(); List<PlanningItem> planningItems = Collections.singletonList(item); String targetUser = "TARGET_USER"; delegate.executePlanning(planningItems, targetUser); verify(runtimeClient).executePlanning(planCaptor.capture(), eq(targetUser)); assertEquals(planningItems, planCaptor.getValue().getItems()); }
public PlanningExecutionResult executePlanning(List<PlanningItem> planningItems, String userId) { return runtimeClient.executePlanning(new PlanningItemList(planningItems), userId); }
TaskAssigningRuntimeDelegate { public PlanningExecutionResult executePlanning(List<PlanningItem> planningItems, String userId) { return runtimeClient.executePlanning(new PlanningItemList(planningItems), userId); } }
TaskAssigningRuntimeDelegate { public PlanningExecutionResult executePlanning(List<PlanningItem> planningItems, String userId) { return runtimeClient.executePlanning(new PlanningItemList(planningItems), userId); } TaskAssigningRuntimeDelegate(final TaskAssigningRuntimeClient runtimeClient); }
TaskAssigningRuntimeDelegate { public PlanningExecutionResult executePlanning(List<PlanningItem> planningItems, String userId) { return runtimeClient.executePlanning(new PlanningItemList(planningItems), userId); } TaskAssigningRuntimeDelegate(final TaskAssigningRuntimeClient runtimeClient); FindTasksResult findTasks(List<Status> status, LocalDateTime fromLastModificationDate, TaskInputVariablesReadMode inputVariablesReadMode); PlanningExecutionResult executePlanning(List<PlanningItem> planningItems, String userId); }
TaskAssigningRuntimeDelegate { public PlanningExecutionResult executePlanning(List<PlanningItem> planningItems, String userId) { return runtimeClient.executePlanning(new PlanningItemList(planningItems), userId); } TaskAssigningRuntimeDelegate(final TaskAssigningRuntimeClient runtimeClient); FindTasksResult findTasks(List<Status> status, LocalDateTime fromLastModificationDate, TaskInputVariablesReadMode inputVariablesReadMode); PlanningExecutionResult executePlanning(List<PlanningItem> planningItems, String userId);  }