From af11eea720c44032defc6a8cc48cb7a5cb27bfeb Mon Sep 17 00:00:00 2001 From: yb__char Date: Tue, 10 Dec 2024 20:29:57 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B2=84=EC=A0=84=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=EC=97=90=20=EB=94=B0=EB=A5=B8=20spotless=20version=20?= =?UTF-8?q?up?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- .../com/depromeet/domain/follow/api/FollowControllerTest.java | 3 +-- .../com/depromeet/domain/image/api/ImageControllerTest.java | 3 +-- .../domain/mission/controller/MissionControllerTest.java | 3 +-- .../missionRecord/application/MissionRecordServiceTest.java | 3 +-- .../notification/application/NotificationServiceTest.java | 3 +-- 6 files changed, 6 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index ce0bf721..7a945fb9 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java' id 'org.springframework.boot' version '3.4.0' id 'io.spring.dependency-management' version '1.1.6' - id 'com.diffplug.spotless' version '6.11.0' + id 'com.diffplug.spotless' version '6.21.0' id 'jacoco' id 'org.sonarqube' version '4.4.1.3373' } diff --git a/src/test/java/com/depromeet/domain/follow/api/FollowControllerTest.java b/src/test/java/com/depromeet/domain/follow/api/FollowControllerTest.java index ddb7414c..40ea25ab 100644 --- a/src/test/java/com/depromeet/domain/follow/api/FollowControllerTest.java +++ b/src/test/java/com/depromeet/domain/follow/api/FollowControllerTest.java @@ -25,8 +25,7 @@ class FollowControllerTest { @Autowired private MockMvc mockMvc; @Autowired private ObjectMapper objectMapper; - @MockitoBean - private FollowService followService; + @MockitoBean private FollowService followService; @Nested class 팔로우를_추가할_때 { diff --git a/src/test/java/com/depromeet/domain/image/api/ImageControllerTest.java b/src/test/java/com/depromeet/domain/image/api/ImageControllerTest.java index 37f2db10..13786123 100644 --- a/src/test/java/com/depromeet/domain/image/api/ImageControllerTest.java +++ b/src/test/java/com/depromeet/domain/image/api/ImageControllerTest.java @@ -28,8 +28,7 @@ class ImageControllerTest { @Autowired private MockMvc mockMvc; @Autowired private ObjectMapper objectMapper; - @MockitoBean - private ImageService imageService; + @MockitoBean private ImageService imageService; @Nested class 미션_기록_이미지_PresignedUrl을_생성할_때 { diff --git a/src/test/java/com/depromeet/domain/mission/controller/MissionControllerTest.java b/src/test/java/com/depromeet/domain/mission/controller/MissionControllerTest.java index cd11163a..96dd3f31 100644 --- a/src/test/java/com/depromeet/domain/mission/controller/MissionControllerTest.java +++ b/src/test/java/com/depromeet/domain/mission/controller/MissionControllerTest.java @@ -42,8 +42,7 @@ class MissionControllerTest { @Autowired private MockMvc mockMvc; @Autowired private ObjectMapper objectMapper; - @MockitoBean - private MissionService missionService; + @MockitoBean private MissionService missionService; @Test void 공부미션을_생성한다() throws Exception { diff --git a/src/test/java/com/depromeet/domain/missionRecord/application/MissionRecordServiceTest.java b/src/test/java/com/depromeet/domain/missionRecord/application/MissionRecordServiceTest.java index 34f75989..9e03f36d 100644 --- a/src/test/java/com/depromeet/domain/missionRecord/application/MissionRecordServiceTest.java +++ b/src/test/java/com/depromeet/domain/missionRecord/application/MissionRecordServiceTest.java @@ -42,8 +42,7 @@ class MissionRecordServiceTest { @Autowired MissionRepository missionRepository; @Autowired MissionRecordRepository missionRecordRepository; @Autowired ReactionRepository reactionRepository; - @MockitoBean - SecurityUtil securityUtil; + @MockitoBean SecurityUtil securityUtil; private Member member; private Mission mission; diff --git a/src/test/java/com/depromeet/domain/notification/application/NotificationServiceTest.java b/src/test/java/com/depromeet/domain/notification/application/NotificationServiceTest.java index 353b82bd..5a012bd4 100644 --- a/src/test/java/com/depromeet/domain/notification/application/NotificationServiceTest.java +++ b/src/test/java/com/depromeet/domain/notification/application/NotificationServiceTest.java @@ -44,8 +44,7 @@ class NotificationServiceTest { @Autowired private MemberUtil memberUtil; - @MockitoBean - private FcmService fcmService; + @MockitoBean private FcmService fcmService; @Autowired private MissionRepository missionRepository;