From 0301a82c760fae8795b0b8cdf8d43e87b4ebcd12 Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Thu, 22 Dec 2022 22:37:47 +0900 Subject: [PATCH 1/8] =?UTF-8?q?feat:=20(#251)=20=ED=9C=B4=EB=AC=B4?= =?UTF-8?q?=ED=91=9C=20=EC=9E=91=EC=84=B1=20=EA=B8=B0=EA=B0=84=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20API=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../simtong/global/security/SecurityConfig.kt | 1 + .../domain/holiday/WebHolidayAdapter.kt | 20 +++++++++++-- .../request/AppointHolidayPeriodWebRequest.kt | 29 +++++++++++++++++++ 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/AppointHolidayPeriodWebRequest.kt diff --git a/simtong-infrastructure/src/main/kotlin/team/comit/simtong/global/security/SecurityConfig.kt b/simtong-infrastructure/src/main/kotlin/team/comit/simtong/global/security/SecurityConfig.kt index f4b803ef..bf504caf 100644 --- a/simtong-infrastructure/src/main/kotlin/team/comit/simtong/global/security/SecurityConfig.kt +++ b/simtong-infrastructure/src/main/kotlin/team/comit/simtong/global/security/SecurityConfig.kt @@ -101,6 +101,7 @@ class SecurityConfig( .antMatchers(HttpMethod.GET, "/holidays/annual/count").hasRole(ROLE_COMMON.role) .antMatchers(HttpMethod.GET, "/holidays/verification-period").hasRole(ROLE_COMMON.role) .antMatchers(HttpMethod.GET, "/holidays/employee").hasRole(ROLE_ADMIN.role) + .antMatchers(HttpMethod.PUT, "/holidays/period").hasRole(ROLE_ADMIN.role) // admins .antMatchers(HttpMethod.POST, "/admins/tokens").permitAll() diff --git a/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/WebHolidayAdapter.kt b/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/WebHolidayAdapter.kt index 1df73682..076e3135 100644 --- a/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/WebHolidayAdapter.kt +++ b/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/WebHolidayAdapter.kt @@ -9,17 +9,20 @@ import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestParam import org.springframework.web.bind.annotation.ResponseStatus import org.springframework.web.bind.annotation.RestController +import team.comit.simtong.domain.holiday.dto.AppointHolidayPeriodRequest import team.comit.simtong.domain.holiday.dto.QueryEmployeeHolidayResponse import team.comit.simtong.domain.holiday.dto.QueryIndividualHolidaysResponse import team.comit.simtong.domain.holiday.dto.QueryIndividualRequest import team.comit.simtong.domain.holiday.dto.request.AppointAnnualWebRequest +import team.comit.simtong.domain.holiday.dto.request.AppointHolidayPeriodWebRequest import team.comit.simtong.domain.holiday.dto.request.AppointHolidayWebRequest -import team.comit.simtong.domain.holiday.dto.request.CancelHolidayRequest +import team.comit.simtong.domain.holiday.dto.request.CancelHolidayWebRequest import team.comit.simtong.domain.holiday.dto.request.ShareHolidayWebRequest import team.comit.simtong.domain.holiday.dto.request.WebHolidayQueryType import team.comit.simtong.domain.holiday.dto.request.WebHolidayStatus import team.comit.simtong.domain.holiday.dto.response.QueryRemainAnnualWebResponse import team.comit.simtong.domain.holiday.usecase.AppointAnnualUseCase +import team.comit.simtong.domain.holiday.usecase.AppointHolidayPeriodUseCase import team.comit.simtong.domain.holiday.usecase.AppointHolidayUseCase import team.comit.simtong.domain.holiday.usecase.CancelHolidayUseCase import team.comit.simtong.domain.holiday.usecase.CheckHolidayPeriodUseCase @@ -42,6 +45,7 @@ import javax.validation.Valid @RestController @RequestMapping("/holidays") class WebHolidayAdapter( + private val appointHolidayPeriodUseCase: AppointHolidayPeriodUseCase, private val checkHolidayPeriodUseCase: CheckHolidayPeriodUseCase, private val queryRemainAnnualUseCase: QueryRemainAnnualUseCase, private val appointAnnualUseCase: AppointAnnualUseCase, @@ -72,7 +76,7 @@ class WebHolidayAdapter( } @PutMapping("/work") - fun cancelHoliday(@RequestBody request: CancelHolidayRequest) { + fun cancelHoliday(@RequestBody request: CancelHolidayWebRequest) { cancelHolidayUseCase.execute(request.date) } @@ -119,4 +123,16 @@ class WebHolidayAdapter( teamId = teamId ) } + + @PutMapping("/period") + fun appointHolidayPeriod(@Valid @RequestBody request: AppointHolidayPeriodWebRequest) { + appointHolidayPeriodUseCase.execute( + AppointHolidayPeriodRequest( + year = request.year, + month = request.month, + startAt = request.startAt, + endAt = request.endAt + ) + ) + } } \ No newline at end of file diff --git a/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/AppointHolidayPeriodWebRequest.kt b/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/AppointHolidayPeriodWebRequest.kt new file mode 100644 index 00000000..06bf0219 --- /dev/null +++ b/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/AppointHolidayPeriodWebRequest.kt @@ -0,0 +1,29 @@ +package team.comit.simtong.domain.holiday.dto.request + +import org.hibernate.validator.constraints.Range +import java.time.LocalDate +import javax.validation.constraints.NotNull + +/** + * + * 휴무표 작성 기간 설정을 요청하는 AppointHolidayPeriodWebRequest + * + * @author Chokyunghyeon + * @date 2022/12/22 + * @version 1.0.0 + **/ +data class AppointHolidayPeriodWebRequest( + @field:NotNull + val year: Int, + + @field:NotNull + @field:Range( + min = 1, + max = 12 + ) + val month: Int, + + val startAt: LocalDate, + + val endAt: LocalDate +) \ No newline at end of file From 41a0e07ca79c63635bc29cf080e9bcbb04167025 Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Thu, 22 Dec 2022 22:38:23 +0900 Subject: [PATCH 2/8] =?UTF-8?q?chore:=20(#251)=20Request=20=E2=86=92=20Web?= =?UTF-8?q?Request=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{CancelHolidayRequest.kt => CancelHolidayWebRequest.kt} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/{CancelHolidayRequest.kt => CancelHolidayWebRequest.kt} (65%) diff --git a/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/CancelHolidayRequest.kt b/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/CancelHolidayWebRequest.kt similarity index 65% rename from simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/CancelHolidayRequest.kt rename to simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/CancelHolidayWebRequest.kt index 752bfaab..c177fd7e 100644 --- a/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/CancelHolidayRequest.kt +++ b/simtong-presentation/src/main/kotlin/team/comit/simtong/domain/holiday/dto/request/CancelHolidayWebRequest.kt @@ -4,12 +4,12 @@ import java.time.LocalDate /** * - * 근무일 지정을 요청하는 CancelHolidayRequest + * 근무일 지정을 요청하는 CancelHolidayWebRequest * * @author kimbeomjin * @date 2022/12/20 * @version 1.0.0 **/ -data class CancelHolidayRequest( +data class CancelHolidayWebRequest( val date: LocalDate ) From 422d3fa367777001c575079842f85f89bada9558 Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Thu, 22 Dec 2022 22:39:00 +0900 Subject: [PATCH 3/8] =?UTF-8?q?add:=20(#251)=20=ED=9C=B4=EB=AC=B4=ED=91=9C?= =?UTF-8?q?=20=EC=9E=91=EC=84=B1=20=EA=B8=B0=EA=B0=84=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20UseCase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/AppointHolidayPeriodRequest.kt | 21 ++++++++++ .../usecase/AppointHolidayPeriodUseCase.kt | 42 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/dto/AppointHolidayPeriodRequest.kt create mode 100644 simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCase.kt diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/dto/AppointHolidayPeriodRequest.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/dto/AppointHolidayPeriodRequest.kt new file mode 100644 index 00000000..8275ca3a --- /dev/null +++ b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/dto/AppointHolidayPeriodRequest.kt @@ -0,0 +1,21 @@ +package team.comit.simtong.domain.holiday.dto + +import java.time.LocalDate + +/** + * + * 휴무표 작성 기간 설정 요청 정보를 전달하는 AppointHolidayPeriodRequest + * + * @author Chokyunghyeon + * @date 2022/12/22 + * @version 1.0.0 + **/ +data class AppointHolidayPeriodRequest( + val year: Int, + + val month: Int, + + val startAt: LocalDate, + + val endAt: LocalDate +) \ No newline at end of file diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCase.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCase.kt new file mode 100644 index 00000000..b3f32433 --- /dev/null +++ b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCase.kt @@ -0,0 +1,42 @@ +package team.comit.simtong.domain.holiday.usecase + +import team.comit.simtong.domain.holiday.dto.AppointHolidayPeriodRequest +import team.comit.simtong.domain.holiday.model.HolidayPeriod +import team.comit.simtong.domain.holiday.spi.CommandHolidayPeriodPort +import team.comit.simtong.domain.holiday.spi.HolidayQueryUserPort +import team.comit.simtong.domain.holiday.spi.HolidaySecurityPort +import team.comit.simtong.domain.user.exception.UserExceptions +import team.comit.simtong.global.annotation.UseCase + +/** + * + * 휴무표 작성 기간 설정을 담당하는 AppointHolidayPeriodUseCase + * + * @author Chokyunghyeon + * @date 2022/12/22 + * @version 1.0.0 + **/ +@UseCase +class AppointHolidayPeriodUseCase( + private val commandHolidayPeriodPort: CommandHolidayPeriodPort, + private val queryUserPort: HolidayQueryUserPort, + private val securityPort: HolidaySecurityPort +) { + + fun execute(request: AppointHolidayPeriodRequest) { + val user = queryUserPort.queryUserById(securityPort.getCurrentUserId()) + ?: throw UserExceptions.NotFound() + + commandHolidayPeriodPort.save( + HolidayPeriod( + year = request.year, + month = request.month, + startAt = request.startAt, + endAt = request.endAt, + spotId = user.spotId + ) + ) + + // TODO 휴무표 작성 기간 알림 + } +} \ No newline at end of file From c531df3ae1c9dcf6d9f5b38b9fb363ece8291a6d Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Thu, 22 Dec 2022 22:40:32 +0900 Subject: [PATCH 4/8] =?UTF-8?q?feat:=20(#251)=20=ED=9C=B4=EB=AC=B4?= =?UTF-8?q?=ED=91=9C=20=EC=9E=91=EC=84=B1=20=EA=B8=B0=EA=B0=84=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=20=EC=BF=BC=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../holiday/spi/CommandHolidayPeriodPort.kt | 17 +++++++++++++++++ .../domain/holiday/spi/HolidayPeriodPort.kt | 2 +- .../holiday/HolidayPeriodPersistenceAdapter.kt | 6 ++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/spi/CommandHolidayPeriodPort.kt diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/spi/CommandHolidayPeriodPort.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/spi/CommandHolidayPeriodPort.kt new file mode 100644 index 00000000..def343e6 --- /dev/null +++ b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/spi/CommandHolidayPeriodPort.kt @@ -0,0 +1,17 @@ +package team.comit.simtong.domain.holiday.spi + +import team.comit.simtong.domain.holiday.model.HolidayPeriod + +/** + * + * 휴무표 작성 기간에 관한 명령을 하는 CommandHolidayPeriodPort + * + * @author Chokyunghyeon + * @date 2022/12/22 + * @version 1.0.0 + **/ +interface CommandHolidayPeriodPort { + + fun save(holidayPeriod: HolidayPeriod) : HolidayPeriod + +} \ No newline at end of file diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/spi/HolidayPeriodPort.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/spi/HolidayPeriodPort.kt index 6b81cc18..621fd8b6 100644 --- a/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/spi/HolidayPeriodPort.kt +++ b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/spi/HolidayPeriodPort.kt @@ -8,4 +8,4 @@ package team.comit.simtong.domain.holiday.spi * @date 2022/12/21 * @version 1.0.0 **/ -interface HolidayPeriodPort : QueryHolidayPeriodPort \ No newline at end of file +interface HolidayPeriodPort : QueryHolidayPeriodPort, CommandHolidayPeriodPort \ No newline at end of file diff --git a/simtong-infrastructure/src/main/kotlin/team/comit/simtong/persistence/holiday/HolidayPeriodPersistenceAdapter.kt b/simtong-infrastructure/src/main/kotlin/team/comit/simtong/persistence/holiday/HolidayPeriodPersistenceAdapter.kt index 3e85018e..e46b3973 100644 --- a/simtong-infrastructure/src/main/kotlin/team/comit/simtong/persistence/holiday/HolidayPeriodPersistenceAdapter.kt +++ b/simtong-infrastructure/src/main/kotlin/team/comit/simtong/persistence/holiday/HolidayPeriodPersistenceAdapter.kt @@ -47,4 +47,10 @@ class HolidayPeriodPersistenceAdapter( .fetchOne() != null } + override fun save(holidayPeriod: HolidayPeriod): HolidayPeriod { + return holidayPeriodJpaRepository.save( + holidayPeriodMapper.toEntity(holidayPeriod) + ).let { holidayPeriodMapper.toDomain(it)!! } + } + } \ No newline at end of file From d3c4f2f11d34c42c4599ad336d58e85899a30020 Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Thu, 22 Dec 2022 22:55:46 +0900 Subject: [PATCH 5/8] =?UTF-8?q?test:=20(#251)=20=ED=9C=B4=EB=AC=B4?= =?UTF-8?q?=ED=91=9C=20=EC=9E=91=EC=84=B1=20=EA=B8=B0=EA=B0=84=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20testcase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppointHolidayPeriodUseCaseTests.kt | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCaseTests.kt diff --git a/simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCaseTests.kt b/simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCaseTests.kt new file mode 100644 index 00000000..bf34bb4d --- /dev/null +++ b/simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCaseTests.kt @@ -0,0 +1,99 @@ +package team.comit.simtong.domain.holiday.usecase + +import org.junit.jupiter.api.BeforeEach +import org.junit.jupiter.api.Test +import org.junit.jupiter.api.assertDoesNotThrow +import org.junit.jupiter.api.assertThrows +import org.mockito.kotlin.given +import org.springframework.boot.test.mock.mockito.MockBean +import team.comit.simtong.domain.holiday.dto.AppointHolidayPeriodRequest +import team.comit.simtong.domain.holiday.spi.CommandHolidayPeriodPort +import team.comit.simtong.domain.holiday.spi.HolidayQueryUserPort +import team.comit.simtong.domain.holiday.spi.HolidaySecurityPort +import team.comit.simtong.domain.user.exception.UserExceptions +import team.comit.simtong.domain.user.model.Authority +import team.comit.simtong.domain.user.model.User +import team.comit.simtong.global.annotation.SimtongTest +import java.time.LocalDate +import java.util.UUID + +@SimtongTest +class AppointHolidayPeriodUseCaseTests { + + @MockBean + private lateinit var commandHolidayPeriodPort: CommandHolidayPeriodPort + + @MockBean + private lateinit var queryUserPort: HolidayQueryUserPort + + @MockBean + private lateinit var securityPort: HolidaySecurityPort + + private lateinit var appointHolidayPeriodUseCase: AppointHolidayPeriodUseCase + + private val id: UUID = UUID.randomUUID() + + private val userStub: User by lazy { + User( + id = id, + nickname = "test nickname", + email = "test@test.com", + name = "test name", + password = "test password", + employeeNumber = 1234567890, + authority = Authority.ROLE_ADMIN, + spotId = id, + teamId = id, + profileImagePath = User.DEFAULT_IMAGE + ) + } + + private val requestStub: AppointHolidayPeriodRequest by lazy { + AppointHolidayPeriodRequest( + year = 2022, + month = 12, + startAt = LocalDate.now(), + endAt = LocalDate.now() + ) + } + + @BeforeEach + fun setUp() { + appointHolidayPeriodUseCase = AppointHolidayPeriodUseCase( + commandHolidayPeriodPort = commandHolidayPeriodPort, + queryUserPort = queryUserPort, + securityPort = securityPort + ) + } + + @Test + fun `휴무일 작성 기간 설정 성공`() { + // given + given(securityPort.getCurrentUserId()) + .willReturn(id) + + given(queryUserPort.queryUserById(id)) + .willReturn(userStub) + + // when & then + assertDoesNotThrow { + appointHolidayPeriodUseCase.execute(requestStub) + } + } + + @Test + fun `유저를 찾을 수 없음`() { + // given + given(securityPort.getCurrentUserId()) + .willReturn(id) + + given(queryUserPort.queryUserById(id)) + .willReturn(null) + + // when & then + assertThrows { + appointHolidayPeriodUseCase.execute(requestStub) + } + } + +} \ No newline at end of file From fcfc1f808e832a6c3046b4b31543da67efeb4df9 Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Thu, 22 Dec 2022 23:34:45 +0900 Subject: [PATCH 6/8] =?UTF-8?q?chore:=20(#251)=20TODO=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/holiday/usecase/AppointHolidayPeriodUseCase.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCase.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCase.kt index b3f32433..48d8537a 100644 --- a/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCase.kt +++ b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayPeriodUseCase.kt @@ -36,7 +36,5 @@ class AppointHolidayPeriodUseCase( spotId = user.spotId ) ) - - // TODO 휴무표 작성 기간 알림 } } \ No newline at end of file From 02bc10cf74d2b3bb1788aef3f1f8488f29bdd48b Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Thu, 22 Dec 2022 23:35:33 +0900 Subject: [PATCH 7/8] =?UTF-8?q?chore:=20(#251)=20=EC=98=88=EC=99=B8=20?= =?UTF-8?q?=EB=A9=94=EC=8B=9C=EC=A7=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../simtong/domain/holiday/usecase/AppointHolidayUseCase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayUseCase.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayUseCase.kt index 94372249..e7130cb9 100644 --- a/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayUseCase.kt +++ b/simtong-application/src/main/kotlin/team/comit/simtong/domain/holiday/usecase/AppointHolidayUseCase.kt @@ -35,7 +35,7 @@ class AppointHolidayUseCase( ?: throw UserExceptions.NotFound() val holidayPeriod = queryHolidayPeriodPort.queryHolidayPeriodByYearAndMonthAndSpotId(date.year, date.monthValue, user.spotId) - ?: throw HolidayExceptions.NotFound("아직 작성 기간이 등록되지 않았습니다.") + ?: throw HolidayExceptions.NotFound("휴무표 작성 기간이 등록되지 않았습니다.") val today = LocalDate.now() From fc673ebecb4ebc060d8b8a8cfd63db275bb8269e Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Thu, 22 Dec 2022 23:58:51 +0900 Subject: [PATCH 8/8] =?UTF-8?q?chore:=20(#251)=20=EB=82=A8=EC=9D=80=20?= =?UTF-8?q?=EC=97=B0=EC=B0=A8=20testcase=20=EC=98=A4=ED=83=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...inAnnualUseCaseTests.kt => QueryRemainAnnualUseCaseTests.kt} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/{QueryQueryRemainAnnualUseCaseTests.kt => QueryRemainAnnualUseCaseTests.kt} (97%) diff --git a/simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/QueryQueryRemainAnnualUseCaseTests.kt b/simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/QueryRemainAnnualUseCaseTests.kt similarity index 97% rename from simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/QueryQueryRemainAnnualUseCaseTests.kt rename to simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/QueryRemainAnnualUseCaseTests.kt index c2f400f0..0167746c 100644 --- a/simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/QueryQueryRemainAnnualUseCaseTests.kt +++ b/simtong-application/src/test/kotlin/team/comit/simtong/domain/holiday/usecase/QueryRemainAnnualUseCaseTests.kt @@ -13,7 +13,7 @@ import team.comit.simtong.global.annotation.SimtongTest import java.util.UUID @SimtongTest -class QueryQueryRemainAnnualUseCaseTests { +class QueryRemainAnnualUseCaseTests { @MockBean private lateinit var queryHolidayPort: QueryHolidayPort