Skip to content

Commit

Permalink
feat(impl):[TRI-1663] code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-ext-kmassalski committed Sep 29, 2023
1 parent df9a655 commit 0212f4a
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

import org.eclipse.tractusx.irs.edc.client.model.notification.EdcNotification;
import org.eclipse.tractusx.irs.edc.client.model.notification.EdcNotificationHeader;
import org.eclipse.tractusx.irs.edc.client.model.notification.InvestigationNotificationContent;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mockito;
Expand Down Expand Up @@ -93,12 +94,14 @@ void shouldReplyOnlyWhenAllJobsAreCompleted() {
}

private RelatedInvestigationJobs createRelatedJobsWith(List<UUID> uuids) {
return new RelatedInvestigationJobs(EdcNotification.builder()
.header(EdcNotificationHeader.builder()
.notificationId(
"notification-id")
.build())
.build(), uuids);
final EdcNotification<InvestigationNotificationContent> build = EdcNotification.<InvestigationNotificationContent>builder()
.header(EdcNotificationHeader.builder()
.notificationId(
"notification-id")
.build())
.content(InvestigationNotificationContent.builder().build())
.build();
return new RelatedInvestigationJobs(build, uuids);
}

}

0 comments on commit 0212f4a

Please sign in to comment.