From e419683fa5ddb72c06dce9a9e4c887d68a485c79 Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Sat, 13 Jan 2024 12:14:25 +0000 Subject: [PATCH] Google Java Format --- .../domain/place/mapper/PlaceMapper.java | 1 + .../domain/place/service/PlaceService.java | 1 - .../twtw/backend/domain/plan/entity/Plan.java | 4 ++- .../domain/plan/service/PlanService.java | 2 ++ .../plan/controller/LocalDateTimeDtoTest.java | 32 +++++++++---------- 5 files changed, 22 insertions(+), 18 deletions(-) diff --git a/backend/src/main/java/com/twtw/backend/domain/place/mapper/PlaceMapper.java b/backend/src/main/java/com/twtw/backend/domain/place/mapper/PlaceMapper.java index 5b5cb1d6..9faa8acf 100644 --- a/backend/src/main/java/com/twtw/backend/domain/place/mapper/PlaceMapper.java +++ b/backend/src/main/java/com/twtw/backend/domain/place/mapper/PlaceMapper.java @@ -2,6 +2,7 @@ import com.twtw.backend.domain.place.entity.Place; import com.twtw.backend.domain.plan.dto.response.PlaceDetails; + import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.MappingConstants; diff --git a/backend/src/main/java/com/twtw/backend/domain/place/service/PlaceService.java b/backend/src/main/java/com/twtw/backend/domain/place/service/PlaceService.java index 25538e4b..634cab76 100644 --- a/backend/src/main/java/com/twtw/backend/domain/place/service/PlaceService.java +++ b/backend/src/main/java/com/twtw/backend/domain/place/service/PlaceService.java @@ -5,7 +5,6 @@ import com.twtw.backend.domain.place.dto.response.PlaceResponse; import com.twtw.backend.domain.place.entity.Place; import com.twtw.backend.domain.place.mapper.PlaceMapper; -import com.twtw.backend.domain.plan.dto.client.PlaceClientDetails; import com.twtw.backend.domain.plan.dto.response.PlaceDetails; import com.twtw.backend.global.client.KakaoMapClient; diff --git a/backend/src/main/java/com/twtw/backend/domain/plan/entity/Plan.java b/backend/src/main/java/com/twtw/backend/domain/plan/entity/Plan.java index 699d2b1b..aac95c8c 100644 --- a/backend/src/main/java/com/twtw/backend/domain/plan/entity/Plan.java +++ b/backend/src/main/java/com/twtw/backend/domain/plan/entity/Plan.java @@ -152,7 +152,9 @@ public List getNotJoinedMembers() { } private boolean isNotJoined(Member member) { - return this.planMembers.stream().noneMatch(planMember -> planMember.isSameMember(member) && planMember.isAccepted()); + return this.planMembers.stream() + .noneMatch( + planMember -> planMember.isSameMember(member) && planMember.isAccepted()); } public void addMembers(final List membersByIds) { diff --git a/backend/src/main/java/com/twtw/backend/domain/plan/service/PlanService.java b/backend/src/main/java/com/twtw/backend/domain/plan/service/PlanService.java index 0d3d0d0d..699aacad 100644 --- a/backend/src/main/java/com/twtw/backend/domain/plan/service/PlanService.java +++ b/backend/src/main/java/com/twtw/backend/domain/plan/service/PlanService.java @@ -29,7 +29,9 @@ import com.twtw.backend.global.constant.NotificationBody; import com.twtw.backend.global.constant.NotificationTitle; import com.twtw.backend.global.exception.EntityNotFoundException; + import lombok.RequiredArgsConstructor; + import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; diff --git a/backend/src/test/java/com/twtw/backend/domain/plan/controller/LocalDateTimeDtoTest.java b/backend/src/test/java/com/twtw/backend/domain/plan/controller/LocalDateTimeDtoTest.java index 12e2ccad..9bf7fa35 100644 --- a/backend/src/test/java/com/twtw/backend/domain/plan/controller/LocalDateTimeDtoTest.java +++ b/backend/src/test/java/com/twtw/backend/domain/plan/controller/LocalDateTimeDtoTest.java @@ -34,22 +34,22 @@ void formatSuccess() throws Exception { post("/plans") .content( "{\n" - + " \"name\": \"name_c195e577132b\",\n" - + " \"groupId\":" - + " \"63fcf33b-55a7-49fc-b8e7-97c993e43632\",\n" - + " \"planDay\": \"2024-01-13 20:22\",\n" - + " \"placeDetails\": {\n" - + " \"placeName\": \"placeName_2bd877f5726b\",\n" - + " \"placeUrl\": \"placeUrl_fd39b3850bfe\",\n" - + " \"roadAddressName\":" - + " \"roadAddressName_d020d911090a\",\n" - + " \"longitude\": 0.00,\n" - + " \"latitude\": 0.00\n" - + " },\n" - + " \"memberIds\": [\n" - + " \"6fc8d409-7010-42b9-8c6f-e807f4028242\"\n" - + " ]\n" - + "}") + + " \"name\": \"name_c195e577132b\",\n" + + " \"groupId\":" + + " \"63fcf33b-55a7-49fc-b8e7-97c993e43632\",\n" + + " \"planDay\": \"2024-01-13 20:22\",\n" + + " \"placeDetails\": {\n" + + " \"placeName\": \"placeName_2bd877f5726b\",\n" + + " \"placeUrl\": \"placeUrl_fd39b3850bfe\",\n" + + " \"roadAddressName\":" + + " \"roadAddressName_d020d911090a\",\n" + + " \"longitude\": 0.00,\n" + + " \"latitude\": 0.00\n" + + " },\n" + + " \"memberIds\": [\n" + + " \"6fc8d409-7010-42b9-8c6f-e807f4028242\"\n" + + " ]\n" + + "}") .contentType(MediaType.APPLICATION_JSON) .header( "Authorization",