From 8b8e98116baa16c82eec672c3a5c79bf85f66692 Mon Sep 17 00:00:00 2001 From: kseysh Date: Thu, 9 Jan 2025 17:37:25 +0900 Subject: [PATCH] =?UTF-8?q?[modify]=20=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C?= =?UTF-8?q?=20=EA=B0=9D=EC=B2=B4=20=EC=82=AD=EC=A0=9C=20(#470)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/operation/OperationInfo.java | 20 ------------------- .../org/sopt/app/facade/UserFacadeTest.java | 5 ++--- 2 files changed, 2 insertions(+), 23 deletions(-) delete mode 100755 src/main/java/org/sopt/app/application/operation/OperationInfo.java diff --git a/src/main/java/org/sopt/app/application/operation/OperationInfo.java b/src/main/java/org/sopt/app/application/operation/OperationInfo.java deleted file mode 100755 index d6690c6d..00000000 --- a/src/main/java/org/sopt/app/application/operation/OperationInfo.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.sopt.app.application.operation; - -import lombok.AccessLevel; -import lombok.Builder; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.ToString; - -@NoArgsConstructor(access = AccessLevel.PRIVATE) -public class OperationInfo { - - @Getter - @Builder - @ToString - public static class MainView { - - private String announcement; - private Double attendanceScore; - } -} diff --git a/src/test/java/org/sopt/app/facade/UserFacadeTest.java b/src/test/java/org/sopt/app/facade/UserFacadeTest.java index 5c74a6ac..e0023102 100755 --- a/src/test/java/org/sopt/app/facade/UserFacadeTest.java +++ b/src/test/java/org/sopt/app/facade/UserFacadeTest.java @@ -13,7 +13,6 @@ import org.sopt.app.application.playground.dto.PlaygroundProfileInfo.MainView; import org.sopt.app.application.playground.PlaygroundAuthService; import org.sopt.app.application.notification.NotificationService; -import org.sopt.app.application.operation.OperationInfo; import org.sopt.app.common.fixtures.UserFixture; import org.sopt.app.presentation.user.UserResponse; import org.sopt.app.presentation.user.UserResponse.Operation; @@ -49,8 +48,8 @@ void getMainViewInfo() { //when when(playgroundAuthService.getPlaygroundUserForMainView(anyString(), anyLong())).thenReturn(playgroundAuthInfo); when(notificationService.getNotificationConfirmStatus(anyLong())).thenReturn(isNotificationConfirm); - when(userResponseMapper.ofMainView(any(MainView.class), any(OperationInfo.MainView.class), - anyBoolean())).thenReturn(mainViewResponse); + when(userResponseMapper.ofMainView(any(MainView.class), any(UserResponse.Operation.class), anyBoolean())) + .thenReturn(mainViewResponse); UserResponse.MainView expected = UserResponse.MainView.builder() .user(mainViewResponse.getUser())