From 1a74d0ae54f849e5ed4fa00774c028cc551ae22b Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Mon, 11 Dec 2023 09:01:51 +0000 Subject: [PATCH] Google Java Format --- .../com/twtw/backend/domain/place/mapper/PlaceMapper.java | 2 +- .../twtw/backend/domain/place/service/PlaceService.java | 2 ++ .../backend/domain/plan/dto/request/SavePlanRequest.java | 4 +++- .../domain/plan/dto/response/PlanDestinationResponse.java | 3 ++- .../backend/domain/plan/dto/response/PlanInfoResponse.java | 6 ++++-- .../com/twtw/backend/domain/plan/mapper/PlanMapper.java | 2 +- .../backend/domain/place/service/PlaceServiceTest.java | 4 +++- .../backend/domain/plan/controller/PlanControllerTest.java | 7 +++++-- .../twtw/backend/fixture/place/PlaceDetailsFixture.java | 1 + 9 files changed, 22 insertions(+), 9 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 b64e0894..d1f72c1d 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 @@ -3,8 +3,8 @@ import com.twtw.backend.domain.place.entity.Place; import com.twtw.backend.domain.plan.dto.client.PlaceClientDetails; import com.twtw.backend.domain.plan.dto.response.PlaceDetails; + import org.mapstruct.Mapper; -import org.mapstruct.Mapping; import org.mapstruct.MappingConstants; @Mapper(componentModel = MappingConstants.ComponentModel.SPRING) 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 05586310..cb0ff6d6 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 @@ -8,7 +8,9 @@ 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; + import lombok.RequiredArgsConstructor; + import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; diff --git a/backend/src/main/java/com/twtw/backend/domain/plan/dto/request/SavePlanRequest.java b/backend/src/main/java/com/twtw/backend/domain/plan/dto/request/SavePlanRequest.java index 88af3ac6..fdc2a2e2 100644 --- a/backend/src/main/java/com/twtw/backend/domain/plan/dto/request/SavePlanRequest.java +++ b/backend/src/main/java/com/twtw/backend/domain/plan/dto/request/SavePlanRequest.java @@ -1,11 +1,13 @@ package com.twtw.backend.domain.plan.dto.request; import com.twtw.backend.domain.plan.dto.response.PlaceDetails; -import java.util.UUID; + import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; +import java.util.UUID; + @Getter @NoArgsConstructor @AllArgsConstructor diff --git a/backend/src/main/java/com/twtw/backend/domain/plan/dto/response/PlanDestinationResponse.java b/backend/src/main/java/com/twtw/backend/domain/plan/dto/response/PlanDestinationResponse.java index bf35c666..534a3ccd 100644 --- a/backend/src/main/java/com/twtw/backend/domain/plan/dto/response/PlanDestinationResponse.java +++ b/backend/src/main/java/com/twtw/backend/domain/plan/dto/response/PlanDestinationResponse.java @@ -1,11 +1,12 @@ package com.twtw.backend.domain.plan.dto.response; -import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.ToString; +import java.util.List; + @Getter @Builder @ToString diff --git a/backend/src/main/java/com/twtw/backend/domain/plan/dto/response/PlanInfoResponse.java b/backend/src/main/java/com/twtw/backend/domain/plan/dto/response/PlanInfoResponse.java index f626021b..a15af644 100644 --- a/backend/src/main/java/com/twtw/backend/domain/plan/dto/response/PlanInfoResponse.java +++ b/backend/src/main/java/com/twtw/backend/domain/plan/dto/response/PlanInfoResponse.java @@ -2,12 +2,14 @@ import com.twtw.backend.domain.group.dto.response.GroupInfoResponse; import com.twtw.backend.domain.member.dto.response.MemberResponse; -import java.util.List; -import java.util.UUID; + import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; +import java.util.List; +import java.util.UUID; + @Getter @Builder @AllArgsConstructor diff --git a/backend/src/main/java/com/twtw/backend/domain/plan/mapper/PlanMapper.java b/backend/src/main/java/com/twtw/backend/domain/plan/mapper/PlanMapper.java index c1535476..7ed064b6 100644 --- a/backend/src/main/java/com/twtw/backend/domain/plan/mapper/PlanMapper.java +++ b/backend/src/main/java/com/twtw/backend/domain/plan/mapper/PlanMapper.java @@ -14,9 +14,9 @@ import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.MappingConstants; +import org.mapstruct.Named; import java.util.List; -import org.mapstruct.Named; @Mapper(componentModel = MappingConstants.ComponentModel.SPRING) public interface PlanMapper { diff --git a/backend/src/test/java/com/twtw/backend/domain/place/service/PlaceServiceTest.java b/backend/src/test/java/com/twtw/backend/domain/place/service/PlaceServiceTest.java index aa9fe21f..6b670a37 100644 --- a/backend/src/test/java/com/twtw/backend/domain/place/service/PlaceServiceTest.java +++ b/backend/src/test/java/com/twtw/backend/domain/place/service/PlaceServiceTest.java @@ -14,12 +14,14 @@ import com.twtw.backend.fixture.place.PlaceEntityFixture; import com.twtw.backend.global.client.KakaoMapClient; import com.twtw.backend.support.service.LoginTest; -import java.util.List; + import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.mock.mockito.MockBean; +import java.util.List; + @DisplayName("PlaceService의") class PlaceServiceTest extends LoginTest { diff --git a/backend/src/test/java/com/twtw/backend/domain/plan/controller/PlanControllerTest.java b/backend/src/test/java/com/twtw/backend/domain/plan/controller/PlanControllerTest.java index 37beed41..0b1d8c22 100644 --- a/backend/src/test/java/com/twtw/backend/domain/plan/controller/PlanControllerTest.java +++ b/backend/src/test/java/com/twtw/backend/domain/plan/controller/PlanControllerTest.java @@ -2,6 +2,7 @@ import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentRequest; import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentResponse; + import static org.mockito.ArgumentMatchers.any; import static org.mockito.BDDMockito.given; import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document; @@ -22,8 +23,7 @@ import com.twtw.backend.domain.plan.dto.response.PlanResponse; import com.twtw.backend.domain.plan.service.PlanService; import com.twtw.backend.support.docs.RestDocsTest; -import java.util.List; -import java.util.UUID; + import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; @@ -31,6 +31,9 @@ import org.springframework.http.MediaType; import org.springframework.test.web.servlet.ResultActions; +import java.util.List; +import java.util.UUID; + @DisplayName("PlanController의") @WebMvcTest(PlanController.class) class PlanControllerTest extends RestDocsTest { diff --git a/backend/src/test/java/com/twtw/backend/fixture/place/PlaceDetailsFixture.java b/backend/src/test/java/com/twtw/backend/fixture/place/PlaceDetailsFixture.java index 56e6c06e..3034ef51 100644 --- a/backend/src/test/java/com/twtw/backend/fixture/place/PlaceDetailsFixture.java +++ b/backend/src/test/java/com/twtw/backend/fixture/place/PlaceDetailsFixture.java @@ -2,6 +2,7 @@ import com.twtw.backend.domain.plan.dto.client.PlaceClientDetails; import com.twtw.backend.domain.plan.dto.response.PlaceDetails; + import lombok.RequiredArgsConstructor; @RequiredArgsConstructor