Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ekl176 committed Jan 14, 2025
1 parent 53149b6 commit 7d07b2d
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
import dev.fitko.fitconnect.api.domain.model.submission.SubmissionForPickup;
import dev.fitko.fitconnect.api.domain.subscriber.ReceivedSubmission;
import dev.fitko.fitconnect.client.SubscriberClient;
import java.util.Objects;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.Objects;

@Service
public class FitConnectSubscriberService implements SubscriberService {

Expand All @@ -21,13 +20,15 @@ public class FitConnectSubscriberService implements SubscriberService {
private final String testUserId;
private static final Logger logger = LoggerFactory.getLogger(FitConnectSubscriberService.class);

public FitConnectSubscriberService(SubscriberClient client, EgvpOutboxService egvpService, @Value("${egvp.client.testUserId}") String userId) {
public FitConnectSubscriberService(
SubscriberClient client,
EgvpOutboxService egvpService,
@Value("${egvp.client.testUserId}") String userId) {
this.client = client;
this.egvpService = egvpService;
this.testUserId = userId;
}


public void pickUpSubmission(SubmissionForPickup submissionForPickup) throws EgvpClientException {
ReceivedSubmission receivedSubmission = client.requestSubmission(submissionForPickup);
logger.info("Submission requested. SubmissionId: {}", submissionForPickup.getSubmissionId());
Expand All @@ -38,8 +39,12 @@ public void pickUpSubmission(SubmissionForPickup submissionForPickup) throws Egv
testUserId,
"mailbox?",
"testmessage_" + receivedSubmission.getCaseId(),
Objects.requireNonNull(this.getClass().getClassLoader().getResource("test/hello_world.pdf")).getPath(),
Objects.requireNonNull(this.getClass().getClassLoader().getResource("test/xjustiz_nachricht.xml")).getPath()));
Objects.requireNonNull(
this.getClass().getClassLoader().getResource("test/hello_world.pdf"))
.getPath(),
Objects.requireNonNull(
this.getClass().getClassLoader().getResource("test/xjustiz_nachricht.xml"))
.getPath()));

receivedSubmission.acceptSubmission();
logger.info("Submission accepted. CaseId: {}", receivedSubmission.getCaseId());
Expand Down

0 comments on commit 7d07b2d

Please sign in to comment.