From d86c7fbcfbc05b636b0f02133d03f8ebd7b2295a Mon Sep 17 00:00:00 2001 From: "Jaemin.Park" Date: Thu, 28 Mar 2024 01:27:57 +0900 Subject: [PATCH] Cealnup codes --- .../betting/BettingApplicationService.kt | 1 - .../goal/GoalApplicationService.kt | 3 +- .../token/RefreshTokenApplicationService.kt | 11 --- .../resolver/UserInfoArgumentResolver.kt | 2 +- .../raisedragon/ControllerTestSupport.kt | 8 -- .../betting/BettingApplicationServiceTest.kt | 1 - .../raisedragon/infra/s3/FakeFileUploader.kt | 2 +- .../domain/betting/BettingServiceTest.kt | 80 +++++++++++----- .../goalgifticon/GoalGifticonServiceTest.kt | 9 +- .../domain/goalproof/GoalProofServiceTest.kt | 94 +++++++++++-------- .../domain/user/UserServiceTest.kt | 4 +- .../whatever/raisedragon/utils/TestUtils.kt | 10 +- 12 files changed, 125 insertions(+), 100 deletions(-) delete mode 100644 raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/token/RefreshTokenApplicationService.kt diff --git a/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/betting/BettingApplicationService.kt b/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/betting/BettingApplicationService.kt index d02399f..b9f1e7d 100644 --- a/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/betting/BettingApplicationService.kt +++ b/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/betting/BettingApplicationService.kt @@ -1,7 +1,6 @@ package com.whatever.raisedragon.applicationservice.betting import com.whatever.raisedragon.applicationservice.betting.dto.BettingCreateServiceRequest -import com.whatever.raisedragon.applicationservice.betting.dto.BettingCreateUpdateResponse import com.whatever.raisedragon.applicationservice.betting.dto.BettingRetrieveResponse import com.whatever.raisedragon.applicationservice.betting.dto.BettingUpdateServiceRequest import com.whatever.raisedragon.common.exception.BaseException diff --git a/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/goal/GoalApplicationService.kt b/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/goal/GoalApplicationService.kt index 4bfc4e7..2bcf36f 100644 --- a/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/goal/GoalApplicationService.kt +++ b/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/goal/GoalApplicationService.kt @@ -74,7 +74,8 @@ class GoalApplicationService( hostUserNickname = hostUser.nickname.value, betting = betting, isSuccess = isSuccess, - winnerNickname = winnerNickname) + winnerNickname = winnerNickname + ) } fun retrieveAllByUserId(userId: Long): List { diff --git a/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/token/RefreshTokenApplicationService.kt b/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/token/RefreshTokenApplicationService.kt deleted file mode 100644 index 94e84ac..0000000 --- a/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/applicationservice/token/RefreshTokenApplicationService.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.whatever.raisedragon.applicationservice.token - -import com.whatever.raisedragon.domain.refreshtoken.RefreshTokenService -import org.springframework.stereotype.Service -import org.springframework.transaction.annotation.Transactional - -@Service -@Transactional(readOnly = true) -class RefreshTokenApplicationService( - private val refreshTokenService: RefreshTokenService -) \ No newline at end of file diff --git a/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/security/resolver/UserInfoArgumentResolver.kt b/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/security/resolver/UserInfoArgumentResolver.kt index ae3e885..3038e73 100644 --- a/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/security/resolver/UserInfoArgumentResolver.kt +++ b/raisedragon-api/src/main/kotlin/com/whatever/raisedragon/security/resolver/UserInfoArgumentResolver.kt @@ -15,7 +15,7 @@ class UserInfoArgumentResolver : HandlerMethodArgumentResolver { override fun supportsParameter(parameter: MethodParameter): Boolean { return parameter.hasParameterAnnotation(GetAuth::class.java) - && parameter.parameter.type == UserInfo::class.java + && parameter.parameter.type == UserInfo::class.java } override fun resolveArgument( diff --git a/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/ControllerTestSupport.kt b/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/ControllerTestSupport.kt index 90038ab..01a3052 100644 --- a/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/ControllerTestSupport.kt +++ b/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/ControllerTestSupport.kt @@ -3,15 +3,7 @@ package com.whatever.raisedragon import com.fasterxml.jackson.databind.ObjectMapper import com.whatever.raisedragon.applicationservice.betting.BettingApplicationService import com.whatever.raisedragon.controller.betting.BettingController -import com.whatever.raisedragon.domain.user.Nickname -import com.whatever.raisedragon.domain.user.User -import com.whatever.raisedragon.security.authentication.UserInfo -import com.whatever.raisedragon.security.jwt.JwtAgent -import com.whatever.raisedragon.security.jwt.JwtToken -import com.whatever.raisedragon.security.resolver.UserInfoArgumentResolver -import org.junit.jupiter.api.BeforeEach import org.mockito.Mockito.* -import org.mockito.Spy import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest import org.springframework.boot.test.mock.mockito.MockBean diff --git a/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/applicationservice/betting/BettingApplicationServiceTest.kt b/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/applicationservice/betting/BettingApplicationServiceTest.kt index 7d17faf..859a159 100644 --- a/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/applicationservice/betting/BettingApplicationServiceTest.kt +++ b/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/applicationservice/betting/BettingApplicationServiceTest.kt @@ -1,7 +1,6 @@ package com.whatever.raisedragon.applicationservice.betting import com.whatever.raisedragon.applicationservice.betting.dto.BettingCreateServiceRequest -import com.whatever.raisedragon.applicationservice.betting.dto.BettingCreateUpdateResponse import com.whatever.raisedragon.applicationservice.betting.dto.BettingRetrieveResponse import com.whatever.raisedragon.applicationservice.betting.dto.BettingUpdateServiceRequest import com.whatever.raisedragon.common.exception.BaseException diff --git a/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/infra/s3/FakeFileUploader.kt b/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/infra/s3/FakeFileUploader.kt index 3bf1dca..1e5e71d 100644 --- a/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/infra/s3/FakeFileUploader.kt +++ b/raisedragon-api/src/test/kotlin/com/whatever/raisedragon/infra/s3/FakeFileUploader.kt @@ -6,7 +6,7 @@ import org.springframework.web.multipart.MultipartFile @Service @Profile("test") -class FakeFileUploader: FileUploader { +class FakeFileUploader : FileUploader { override fun upload(multipartFile: MultipartFile): String { return "" } diff --git a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/betting/BettingServiceTest.kt b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/betting/BettingServiceTest.kt index 537785d..3f77666 100644 --- a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/betting/BettingServiceTest.kt +++ b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/betting/BettingServiceTest.kt @@ -41,11 +41,13 @@ class BettingServiceTest : IntegrationTestSupport { val userEntity = UserEntity(nickname = Nickname("User1")) userRepository.save(userEntity) - val goalEntity = createGoalEntity(userEntity, + val goalEntity = createGoalEntity( + userEntity, BILLING, PROCEEDING, LocalDateTime.now(), - LocalDateTime.now().plusDays(7)) + LocalDateTime.now().plusDays(7) + ) goalRepository.save(goalEntity) // when @@ -69,11 +71,13 @@ class BettingServiceTest : IntegrationTestSupport { val userEntity = UserEntity(nickname = Nickname("User1")) userRepository.save(userEntity) - val goalEntity = createGoalEntity(userEntity, + val goalEntity = createGoalEntity( + userEntity, BILLING, PROCEEDING, LocalDateTime.now(), - LocalDateTime.now().plusDays(7)) + LocalDateTime.now().plusDays(7) + ) goalRepository.save(goalEntity) // when // then @@ -93,11 +97,13 @@ class BettingServiceTest : IntegrationTestSupport { val userEntity = UserEntity(nickname = Nickname("User1")) userRepository.save(userEntity) - val goalEntity = createGoalEntity(userEntity, + val goalEntity = createGoalEntity( + userEntity, BILLING, PROCEEDING, LocalDateTime.now(), - LocalDateTime.now().plusDays(7)) + LocalDateTime.now().plusDays(7) + ) goalRepository.save(goalEntity) // when // then @@ -117,11 +123,13 @@ class BettingServiceTest : IntegrationTestSupport { val userEntity = UserEntity(nickname = Nickname("User1")) userRepository.save(userEntity) - val goalEntity = createGoalEntity(userEntity, + val goalEntity = createGoalEntity( + userEntity, BILLING, PROCEEDING, LocalDateTime.now(), - LocalDateTime.now().plusDays(7)) + LocalDateTime.now().plusDays(7) + ) goalRepository.save(goalEntity) val bettingEntity = BettingEntity( @@ -150,11 +158,13 @@ class BettingServiceTest : IntegrationTestSupport { val userEntity2 = UserEntity(nickname = Nickname("User2")) userRepository.saveAll(listOf(userEntity1, userEntity2)) - val goalEntity = createGoalEntity(userEntity1, + val goalEntity = createGoalEntity( + userEntity1, BILLING, PROCEEDING, LocalDateTime.now(), - LocalDateTime.now().plusDays(7)) + LocalDateTime.now().plusDays(7) + ) goalRepository.save(goalEntity) val bettingEntity = BettingEntity( @@ -180,11 +190,13 @@ class BettingServiceTest : IntegrationTestSupport { val userEntity2 = UserEntity(nickname = Nickname("User2")) userRepository.saveAll(listOf(userEntity1, userEntity2)) - val goalEntity = createGoalEntity(userEntity1, + val goalEntity = createGoalEntity( + userEntity1, BILLING, PROCEEDING, LocalDateTime.now(), - LocalDateTime.now().plusDays(7)) + LocalDateTime.now().plusDays(7) + ) goalRepository.save(goalEntity) val bettingEntity = BettingEntity( @@ -208,11 +220,13 @@ class BettingServiceTest : IntegrationTestSupport { val userEntity2 = UserEntity(nickname = Nickname("User2")) userRepository.saveAll(listOf(userEntity1, userEntity2)) - val goalEntity = createGoalEntity(userEntity1, + val goalEntity = createGoalEntity( + userEntity1, BILLING, PROCEEDING, LocalDateTime.now(), - LocalDateTime.now().plusDays(7)) + LocalDateTime.now().plusDays(7) + ) goalRepository.save(goalEntity) val bettingEntity = BettingEntity( @@ -284,14 +298,18 @@ class BettingServiceTest : IntegrationTestSupport { assertThat(foundBettingList).hasSize(2) .extractingBettingProperties() .containsExactlyInAnyOrder( - tuple(bettingEntity1.userEntity.id, + tuple( + bettingEntity1.userEntity.id, bettingEntity1.goalEntity.id, BettingPredictionType.FAIL, - BettingResult.PROCEEDING), - tuple(bettingEntity2.userEntity.id, + BettingResult.PROCEEDING + ), + tuple( + bettingEntity2.userEntity.id, bettingEntity2.goalEntity.id, BettingPredictionType.SUCCESS, - BettingResult.NO_GIFTICON), + BettingResult.NO_GIFTICON + ), ) } @@ -1024,10 +1042,16 @@ class BettingServiceTest : IntegrationTestSupport { bettingService.hardDeleteByUserId(userEntity.id) // then - assertThat(bettingRepository.findAllById(setOf(bettingEntity1.id, - bettingEntity2.id, - bettingEntity3.id, - bettingEntity4.id))) + assertThat( + bettingRepository.findAllById( + setOf( + bettingEntity1.id, + bettingEntity2.id, + bettingEntity3.id, + bettingEntity4.id + ) + ) + ) .isEmpty() } @@ -1079,15 +1103,19 @@ class BettingServiceTest : IntegrationTestSupport { private fun ObjectAssert<*>.isInstanceOfBetting() = isInstanceOf(Betting::class.java) - private fun ObjectAssert<*>.extractingBettingProperties() = extracting("userId", + private fun ObjectAssert<*>.extractingBettingProperties() = extracting( + "userId", "goalId", "bettingPredictionType", - "bettingResult") + "bettingResult" + ) - private fun ListAssert<*>.extractingBettingProperties() = extracting("userId", + private fun ListAssert<*>.extractingBettingProperties() = extracting( + "userId", "goalId", "bettingPredictionType", - "bettingResult") + "bettingResult" + ) private fun createGoalEntity( userEntity: UserEntity, diff --git a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/goalgifticon/GoalGifticonServiceTest.kt b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/goalgifticon/GoalGifticonServiceTest.kt index 4eac19f..a8ce8a5 100644 --- a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/goalgifticon/GoalGifticonServiceTest.kt +++ b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/goalgifticon/GoalGifticonServiceTest.kt @@ -126,7 +126,8 @@ class GoalGifticonServiceTest : IntegrationTestSupport { goalGifticonEntity1, goalGifticonEntity2, goalGifticonEntity3, - goalGifticonEntity4) + goalGifticonEntity4 + ) ) // when val foundGoalGifticon = goalGifticonService.findByGoalId(goalEntity1.id) @@ -164,7 +165,8 @@ class GoalGifticonServiceTest : IntegrationTestSupport { goalGifticonEntity1, goalGifticonEntity2, goalGifticonEntity3, - goalGifticonEntity4) + goalGifticonEntity4 + ) ) // when val foundGoalGifticon = goalGifticonService.findByGoalId(goalEntity1.id) @@ -199,7 +201,8 @@ class GoalGifticonServiceTest : IntegrationTestSupport { goalGifticonEntity1, goalGifticonEntity2, goalGifticonEntity3, - goalGifticonEntity4) + goalGifticonEntity4 + ) ) // when // then assertThatThrownBy { goalGifticonService.findByGoalId(-1L) } diff --git a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/goalproof/GoalProofServiceTest.kt b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/goalproof/GoalProofServiceTest.kt index 4a900e2..28dec69 100644 --- a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/goalproof/GoalProofServiceTest.kt +++ b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/goalproof/GoalProofServiceTest.kt @@ -180,12 +180,14 @@ class GoalProofServiceTest : IntegrationTestSupport { val goalProofEntity3 = createGoalProofEntity(userEntity2, goalEntity1, URL("url3"), Comment("comment3")) val goalProofEntity4 = createGoalProofEntity(userEntity2, goalEntity2, URL("url4"), Comment("comment4")) val goalProofEntity5 = createGoalProofEntity(userEntity1, goalEntity1, URL("url5"), Comment("comment5")) - goalProofRepository.saveAll(listOf( - goalProofEntity1, - goalProofEntity2, - goalProofEntity3, - goalProofEntity4, - goalProofEntity5) + goalProofRepository.saveAll( + listOf( + goalProofEntity1, + goalProofEntity2, + goalProofEntity3, + goalProofEntity4, + goalProofEntity5 + ) ) // when @@ -222,13 +224,15 @@ class GoalProofServiceTest : IntegrationTestSupport { val goalProofEntity3 = createGoalProofEntity(userEntity2, goalEntity1, URL("url3"), Comment("comment3")) val goalProofEntity4 = createGoalProofEntity(userEntity2, goalEntity2, URL("url4"), Comment("comment4")) val goalProofEntity5 = createGoalProofEntity(userEntity1, goalEntity1, URL("url5"), Comment("comment5")) - goalProofRepository.saveAll(listOf( - goalProofEntity1, - goalProofEntity2, - goalProofEntity3, - goalProofEntity4, - goalProofEntity5 - )) + goalProofRepository.saveAll( + listOf( + goalProofEntity1, + goalProofEntity2, + goalProofEntity3, + goalProofEntity4, + goalProofEntity5 + ) + ) // when val foundGoalProofList = goalProofService.findAllByGoalIdAndUserId( @@ -259,13 +263,15 @@ class GoalProofServiceTest : IntegrationTestSupport { val goalProofEntity3 = createGoalProofEntity(userEntity2, goalEntity1, URL("url3"), Comment("comment3")) val goalProofEntity4 = createGoalProofEntity(userEntity2, goalEntity2, URL("url4"), Comment("comment4")) val goalProofEntity5 = createGoalProofEntity(userEntity1, goalEntity1, URL("url5"), Comment("comment5")) - goalProofRepository.saveAll(listOf( - goalProofEntity1, - goalProofEntity2, - goalProofEntity3, - goalProofEntity4, - goalProofEntity5 - )) + goalProofRepository.saveAll( + listOf( + goalProofEntity1, + goalProofEntity2, + goalProofEntity3, + goalProofEntity4, + goalProofEntity5 + ) + ) // when // then assertThatThrownBy { goalProofService.findAllByGoalIdAndUserId(goalId = -1L, userId = userEntity1.id) } @@ -290,13 +296,15 @@ class GoalProofServiceTest : IntegrationTestSupport { val goalProofEntity3 = createGoalProofEntity(userEntity2, goalEntity1, URL("url3"), Comment("comment3")) val goalProofEntity4 = createGoalProofEntity(userEntity2, goalEntity2, URL("url4"), Comment("comment4")) val goalProofEntity5 = createGoalProofEntity(userEntity1, goalEntity1, URL("url5"), Comment("comment5")) - goalProofRepository.saveAll(listOf( - goalProofEntity1, - goalProofEntity2, - goalProofEntity3, - goalProofEntity4, - goalProofEntity5 - )) + goalProofRepository.saveAll( + listOf( + goalProofEntity1, + goalProofEntity2, + goalProofEntity3, + goalProofEntity4, + goalProofEntity5 + ) + ) // when // then assertThatThrownBy { goalProofService.findAllByGoalIdAndUserId(goalId = goalEntity1.id, userId = -1L) } @@ -321,13 +329,15 @@ class GoalProofServiceTest : IntegrationTestSupport { val goalProofEntity3 = createGoalProofEntity(userEntity2, goalEntity1, URL("url3"), Comment("comment3")) val goalProofEntity4 = createGoalProofEntity(userEntity2, goalEntity2, URL("url4"), Comment("comment4")) val goalProofEntity5 = createGoalProofEntity(userEntity1, goalEntity1, URL("url5"), Comment("comment5")) - goalProofRepository.saveAll(listOf( - goalProofEntity1, - goalProofEntity2, - goalProofEntity3, - goalProofEntity4, - goalProofEntity5 - )) + goalProofRepository.saveAll( + listOf( + goalProofEntity1, + goalProofEntity2, + goalProofEntity3, + goalProofEntity4, + goalProofEntity5 + ) + ) // when val count = goalProofService.countAllByGoalId(goalEntity1.id) @@ -354,13 +364,15 @@ class GoalProofServiceTest : IntegrationTestSupport { val goalProofEntity3 = createGoalProofEntity(userEntity2, goalEntity1, URL("url3"), Comment("comment3")) val goalProofEntity4 = createGoalProofEntity(userEntity2, goalEntity2, URL("url4"), Comment("comment4")) val goalProofEntity5 = createGoalProofEntity(userEntity1, goalEntity1, URL("url5"), Comment("comment5")) - goalProofRepository.saveAll(listOf( - goalProofEntity1, - goalProofEntity2, - goalProofEntity3, - goalProofEntity4, - goalProofEntity5 - )) + goalProofRepository.saveAll( + listOf( + goalProofEntity1, + goalProofEntity2, + goalProofEntity3, + goalProofEntity4, + goalProofEntity5 + ) + ) // when // then assertThatThrownBy { goalProofService.countAllByGoalId(-1L) } diff --git a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/user/UserServiceTest.kt b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/user/UserServiceTest.kt index 06f46af..f959934 100644 --- a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/user/UserServiceTest.kt +++ b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/domain/user/UserServiceTest.kt @@ -109,7 +109,7 @@ class UserServiceTest : IntegrationTestSupport { val userEntity4 = UserEntity(nickname = Nickname("User4")) userRepository.saveAll(listOf(userEntity1, userEntity2, userEntity3, userEntity4)) - val selectedUserEntityList = listOf(userEntity1,userEntity2,userEntity4) + val selectedUserEntityList = listOf(userEntity1, userEntity2, userEntity4) val selectedUserIds = selectedUserEntityList.map { user -> user.id }.toSet() val selectedUserNickname = selectedUserEntityList.map { user -> user.nickname }.toTypedArray() @@ -135,7 +135,7 @@ class UserServiceTest : IntegrationTestSupport { userRepository.saveAll(listOf(userEntity1, userEntity2, userEntity3, userEntity4)) // when - val foundUserList = userService.findAllByIdInIds(setOf(-1,-2,-3)) + val foundUserList = userService.findAllByIdInIds(setOf(-1, -2, -3)) // then assertThat(foundUserList) diff --git a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/utils/TestUtils.kt b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/utils/TestUtils.kt index fdd533e..8406ef8 100644 --- a/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/utils/TestUtils.kt +++ b/raisedragon-core/src/test/kotlin/com/whatever/raisedragon/utils/TestUtils.kt @@ -4,8 +4,10 @@ import com.whatever.raisedragon.common.exception.BaseException import com.whatever.raisedragon.common.exception.ExceptionCode import org.assertj.core.api.AbstractThrowableAssert -fun AbstractThrowableAssert<*, *>.anyNotFoundException(): AbstractThrowableAssert<*, *> = isInstanceOf(BaseException::class.java) - .hasMessage(ExceptionCode.E404_NOT_FOUND.message) +fun AbstractThrowableAssert<*, *>.anyNotFoundException(): AbstractThrowableAssert<*, *> = + isInstanceOf(BaseException::class.java) + .hasMessage(ExceptionCode.E404_NOT_FOUND.message) -fun AbstractThrowableAssert<*, *>.anyInternalException(): AbstractThrowableAssert<*, *> = isInstanceOf(BaseException::class.java) - .hasMessage(ExceptionCode.E500_INTERNAL_SERVER_ERROR.message) \ No newline at end of file +fun AbstractThrowableAssert<*, *>.anyInternalException(): AbstractThrowableAssert<*, *> = + isInstanceOf(BaseException::class.java) + .hasMessage(ExceptionCode.E500_INTERNAL_SERVER_ERROR.message) \ No newline at end of file