use of org.kie.server.services.taskassigning.core.model.solver.realtime.TaskPropertyChangeProblemFactChange in project droolsjbpm-integration by kiegroup.
the class SolverHandlerTest method onSolutionSynchronizedWithChanges.
@Test
public void onSolutionSynchronizedWithChanges() {
prepareStart();
List<ProblemFactChange<TaskAssigningSolution>> changes = new ArrayList<>();
changes.add(new TaskPropertyChangeProblemFactChange(new Task()));
SolutionSynchronizer.Result result = SolutionSynchronizer.Result.forChanges(changes);
doReturn(true).when(solverExecutor).isStarted();
synchronizerConsumerCaptor.getValue().accept(result);
verify(solverExecutor).addProblemFactChanges(changes);
verify(solutionProcessor, never()).process(any(TaskAssigningSolution.class));
verify(solutionSynchronizer, never()).synchronizeSolution(any(TaskAssigningSolution.class), any(LocalDateTime.class));
}
Aggregations