From 3a10415ea3c0bf7a3b10e1b4200a980174ea0100 Mon Sep 17 00:00:00 2001 From: Jarkko Pesonen <435495+jrkkp@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:12:02 +0300 Subject: [PATCH] VKT(Backend): prettier --- .../ClerkEnrollmentContactRequestDTO.java | 3 +- .../vkt/service/ClerkEnrollmentService.java | 33 ++++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/backend/vkt/src/main/java/fi/oph/vkt/api/dto/clerk/ClerkEnrollmentContactRequestDTO.java b/backend/vkt/src/main/java/fi/oph/vkt/api/dto/clerk/ClerkEnrollmentContactRequestDTO.java index fe14394c5..90cd3cd88 100644 --- a/backend/vkt/src/main/java/fi/oph/vkt/api/dto/clerk/ClerkEnrollmentContactRequestDTO.java +++ b/backend/vkt/src/main/java/fi/oph/vkt/api/dto/clerk/ClerkEnrollmentContactRequestDTO.java @@ -24,5 +24,4 @@ public record ClerkEnrollmentContactRequestDTO( @NonNull @NotBlank String email, @NonNull @NotBlank String firstName, @NonNull @NotBlank String lastName -) { -} +) {} diff --git a/backend/vkt/src/main/java/fi/oph/vkt/service/ClerkEnrollmentService.java b/backend/vkt/src/main/java/fi/oph/vkt/service/ClerkEnrollmentService.java index f70104a23..e54fd3f32 100644 --- a/backend/vkt/src/main/java/fi/oph/vkt/service/ClerkEnrollmentService.java +++ b/backend/vkt/src/main/java/fi/oph/vkt/service/ClerkEnrollmentService.java @@ -216,21 +216,22 @@ public void getAndSaveKoskiEducationDetailsForEnrollment(final long enrollmentId } public ClerkEnrollmentContactRequestDTO getEnrollmentContactRequest(final long enrollmentId) { - return ClerkEnrollmentContactRequestDTO.builder() - .id(enrollmentId) - .version(1) - .enrollmentTime(LocalDateTime.now()) - .oralSkill(true) - .textualSkill(true) - .understandingSkill(true) - .speakingPartialExam(true) - .speechComprehensionPartialExam(true) - .writingPartialExam(true) - .readingComprehensionPartialExam(true) - .status(EnrollmentStatus.CANCELED) - .email("foo@bar") - .firstName("Testi") - .lastName("Tessilä") - .build(); + return ClerkEnrollmentContactRequestDTO + .builder() + .id(enrollmentId) + .version(1) + .enrollmentTime(LocalDateTime.now()) + .oralSkill(true) + .textualSkill(true) + .understandingSkill(true) + .speakingPartialExam(true) + .speechComprehensionPartialExam(true) + .writingPartialExam(true) + .readingComprehensionPartialExam(true) + .status(EnrollmentStatus.CANCELED) + .email("foo@bar") + .firstName("Testi") + .lastName("Tessilä") + .build(); } }