From 22f945ca8ecd70dfb6cf5878c46cdbffd5c1cc32 Mon Sep 17 00:00:00 2001 From: ikjunoh Date: Fri, 23 Aug 2024 12:03:01 +0900 Subject: [PATCH] =?UTF-8?q?del=20:=20=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C?= =?UTF-8?q?=20import=20=EC=A0=95=EB=A6=AC=20(CC-182)=20(#52)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../caecae/admin/api/AdminFindingGameController.java | 2 -- .../caecae/admin/service/AdminRacingGameService.java | 1 - .../findinggame/domain/entity/FindingGameRealWinner.java | 6 ------ .../findinggame/repository/FindingGameRedisRepository.java | 2 -- .../caecae/global/exception/GlobalExceptionHandler.java | 1 - .../racinggame/service/RacingGameParticipantService.java | 2 +- src/test/java/ai/softeer/caecae/CaecaeApplicationTests.java | 1 - .../findinggame/service/FindingGamePlayServiceTest.java | 2 -- .../caecae/findinggame/service/FindingGameServiceTest.java | 5 ++++- 9 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/main/java/ai/softeer/caecae/admin/api/AdminFindingGameController.java b/src/main/java/ai/softeer/caecae/admin/api/AdminFindingGameController.java index d6674e9..c3cd98b 100644 --- a/src/main/java/ai/softeer/caecae/admin/api/AdminFindingGameController.java +++ b/src/main/java/ai/softeer/caecae/admin/api/AdminFindingGameController.java @@ -3,12 +3,10 @@ import ai.softeer.caecae.admin.domain.dto.request.FindingGameDailyAnswerRequestDto; import ai.softeer.caecae.admin.domain.dto.response.FindingGameDailyAnswerResponseDto; import ai.softeer.caecae.admin.service.AdminFindingGameService; -import ai.softeer.caecae.findinggame.service.FindingGameService; import ai.softeer.caecae.global.dto.response.SuccessResponse; import ai.softeer.caecae.global.enums.SuccessCode; import ai.softeer.caecae.racinggame.domain.dto.request.RegisterFindingGamePeriodRequestDto; import ai.softeer.caecae.racinggame.domain.dto.response.RegisterFindingGamePeriodResponseDto; -import ai.softeer.caecae.racinggame.service.RacingGameInfoService; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; diff --git a/src/main/java/ai/softeer/caecae/admin/service/AdminRacingGameService.java b/src/main/java/ai/softeer/caecae/admin/service/AdminRacingGameService.java index 68f1086..504b718 100644 --- a/src/main/java/ai/softeer/caecae/admin/service/AdminRacingGameService.java +++ b/src/main/java/ai/softeer/caecae/admin/service/AdminRacingGameService.java @@ -1,7 +1,6 @@ package ai.softeer.caecae.admin.service; import ai.softeer.caecae.admin.domain.dto.response.RacingGameWinnerResponseDto; -import ai.softeer.caecae.findinggame.repository.FindingGameAnswerDbRepository; import ai.softeer.caecae.global.enums.ErrorCode; import ai.softeer.caecae.racinggame.domain.entity.RacingGameInfo; import ai.softeer.caecae.racinggame.domain.entity.RacingGameParticipant; diff --git a/src/main/java/ai/softeer/caecae/findinggame/domain/entity/FindingGameRealWinner.java b/src/main/java/ai/softeer/caecae/findinggame/domain/entity/FindingGameRealWinner.java index f34e537..4c26f64 100644 --- a/src/main/java/ai/softeer/caecae/findinggame/domain/entity/FindingGameRealWinner.java +++ b/src/main/java/ai/softeer/caecae/findinggame/domain/entity/FindingGameRealWinner.java @@ -1,17 +1,11 @@ package ai.softeer.caecae.findinggame.domain.entity; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer; -import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer; import jakarta.persistence.Column; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; -import java.time.LocalDateTime; - @Getter @Builder @AllArgsConstructor diff --git a/src/main/java/ai/softeer/caecae/findinggame/repository/FindingGameRedisRepository.java b/src/main/java/ai/softeer/caecae/findinggame/repository/FindingGameRedisRepository.java index 9e1c233..0879738 100644 --- a/src/main/java/ai/softeer/caecae/findinggame/repository/FindingGameRedisRepository.java +++ b/src/main/java/ai/softeer/caecae/findinggame/repository/FindingGameRedisRepository.java @@ -1,7 +1,6 @@ package ai.softeer.caecae.findinggame.repository; import ai.softeer.caecae.findinggame.domain.entity.FindingGameRealWinner; -import ai.softeer.caecae.findinggame.domain.entity.FindingGameWinner; import ai.softeer.caecae.global.utils.SystemTimeConvertor; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -10,7 +9,6 @@ import org.springframework.stereotype.Repository; import java.time.LocalDateTime; -import java.util.List; import java.util.Map; @Slf4j diff --git a/src/main/java/ai/softeer/caecae/global/exception/GlobalExceptionHandler.java b/src/main/java/ai/softeer/caecae/global/exception/GlobalExceptionHandler.java index c163914..e22e310 100644 --- a/src/main/java/ai/softeer/caecae/global/exception/GlobalExceptionHandler.java +++ b/src/main/java/ai/softeer/caecae/global/exception/GlobalExceptionHandler.java @@ -4,7 +4,6 @@ import ai.softeer.caecae.global.enums.ErrorCode; import lombok.extern.slf4j.Slf4j; import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; /** diff --git a/src/main/java/ai/softeer/caecae/racinggame/service/RacingGameParticipantService.java b/src/main/java/ai/softeer/caecae/racinggame/service/RacingGameParticipantService.java index 4ef3ae5..fbc80e0 100644 --- a/src/main/java/ai/softeer/caecae/racinggame/service/RacingGameParticipantService.java +++ b/src/main/java/ai/softeer/caecae/racinggame/service/RacingGameParticipantService.java @@ -2,8 +2,8 @@ import ai.softeer.caecae.global.enums.ErrorCode; import ai.softeer.caecae.racinggame.domain.dto.request.RegisterRacingGameResultRequestDto; -import ai.softeer.caecae.racinggame.domain.dto.response.RegisterRacingGameResultResponseDto; import ai.softeer.caecae.racinggame.domain.dto.request.SetSelectionRequestDto; +import ai.softeer.caecae.racinggame.domain.dto.response.RegisterRacingGameResultResponseDto; import ai.softeer.caecae.racinggame.domain.dto.response.SetSelectionResponseDto; import ai.softeer.caecae.racinggame.domain.entity.RacingGameParticipant; import ai.softeer.caecae.racinggame.domain.exception.RacingGameException; diff --git a/src/test/java/ai/softeer/caecae/CaecaeApplicationTests.java b/src/test/java/ai/softeer/caecae/CaecaeApplicationTests.java index 6de1c3d..f7f01ee 100644 --- a/src/test/java/ai/softeer/caecae/CaecaeApplicationTests.java +++ b/src/test/java/ai/softeer/caecae/CaecaeApplicationTests.java @@ -1,7 +1,6 @@ package ai.softeer.caecae; import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; class CaecaeApplicationTests { diff --git a/src/test/java/ai/softeer/caecae/findinggame/service/FindingGamePlayServiceTest.java b/src/test/java/ai/softeer/caecae/findinggame/service/FindingGamePlayServiceTest.java index 6005f34..1488971 100644 --- a/src/test/java/ai/softeer/caecae/findinggame/service/FindingGamePlayServiceTest.java +++ b/src/test/java/ai/softeer/caecae/findinggame/service/FindingGamePlayServiceTest.java @@ -11,8 +11,6 @@ import ai.softeer.caecae.findinggame.repository.FindingGameAnswerDbRepository; import ai.softeer.caecae.findinggame.repository.FindingGameDbRepository; import ai.softeer.caecae.findinggame.repository.FindingGameRedisRepository; -import ai.softeer.caecae.findinggame.repository.FindingGameWinnerRepository; -import ai.softeer.caecae.user.repository.UserRepository; import org.assertj.core.api.Assertions; import org.assertj.core.data.Offset; import org.junit.jupiter.api.BeforeEach; diff --git a/src/test/java/ai/softeer/caecae/findinggame/service/FindingGameServiceTest.java b/src/test/java/ai/softeer/caecae/findinggame/service/FindingGameServiceTest.java index 1c20568..d794761 100644 --- a/src/test/java/ai/softeer/caecae/findinggame/service/FindingGameServiceTest.java +++ b/src/test/java/ai/softeer/caecae/findinggame/service/FindingGameServiceTest.java @@ -5,7 +5,10 @@ import ai.softeer.caecae.findinggame.domain.enums.AnswerType; import ai.softeer.caecae.findinggame.repository.FindingGameDbRepository; import org.assertj.core.api.Assertions; -import org.junit.jupiter.api.*; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; import org.mockito.Mock;