Skip to content

Commit

Permalink
Test Code Smells
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrdi committed Dec 14, 2023
1 parent 3ccec34 commit 3ef3b34
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,14 @@ void should_ChangeDueDate_When_ServiceLevelOfClassificationHasChanged() throws E
.permission(WorkbasketPermission.APPEND)
.buildAndStore(workbasketService, "businessadmin");

Task task = new TaskBuilder()
.classificationSummary(classification.asSummary())
.workbasketSummary(workbasketSummary)
.primaryObjRef(defaultTestObjectReference().build())
.planned(Instant.parse("2021-04-27T15:34:00.000Z"))
.due(null)
.buildAndStore(taskService);
Task task =
new TaskBuilder()
.classificationSummary(classification.asSummary())
.workbasketSummary(workbasketSummary)
.primaryObjRef(defaultTestObjectReference().build())
.planned(Instant.parse("2021-04-27T15:34:00.000Z"))
.due(null)
.buildAndStore(taskService);

classificationService.updateClassification(classification);
runAssociatedJobs();
Expand All @@ -228,6 +229,7 @@ void should_ChangeDueDate_When_ServiceLevelOfClassificationHasChanged() throws E
task = taskService.getTask(task.getId());
assertThat(task.getClassificationSummary().getServiceLevel()).isEqualTo("P3D");
assertThat(task.getDue()).isEqualTo("2021-04-30T15:33:59.999Z");
assertThat(task.getWorkbasketSummary().getId()).isEqualTo(workbasketSummary.getId());
}

@WithAccessId(user = "businessadmin")
Expand Down

0 comments on commit 3ef3b34

Please sign in to comment.