Skip to content

Commit

Permalink
use GoalSource in test instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
skovati committed Sep 5, 2024
1 parent 3b19bee commit e5fefe5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,7 @@ private SchedulingRunResults runScheduler(
final var goalsByPriority = new ArrayList<GoalRecord>();

for (final var goal : goals) {
goalsByPriority.add(new GoalRecord(goal.goalId(), "test goal", new GoalType.EDSL(goal.definition()), goal.simulateAfter()));
goalsByPriority.add(new GoalRecord(goal.goalId(), "test goal", new GoalType.EDSL(new GoalSource(goal.definition())), goal.simulateAfter()));
}
final var specificationService = new SpecificationService(new MockSpecificationRepository(Map.of(new SpecificationId(1L), new Specification(
new SpecificationId(1L),
Expand Down

0 comments on commit e5fefe5

Please sign in to comment.