generated from pricelees/issue-pr-template
chore: given-when-then 주석 제거
This commit is contained in:
parent
e1c3943b85
commit
4b568915ae
@ -25,14 +25,12 @@ class JwtHandlerTest : FunSpec({
|
||||
}
|
||||
|
||||
test("만료된 토큰이면 예외를 던진다.") {
|
||||
// given
|
||||
val expirationTime = 0L
|
||||
val shortExpirationTimeJwtHandler: JwtHandler = JwtFixture.create(expirationTime = expirationTime)
|
||||
val token = shortExpirationTimeJwtHandler.createToken(memberId)
|
||||
|
||||
Thread.sleep(expirationTime) // 만료 시간 이후로 대기
|
||||
|
||||
// when & then
|
||||
shouldThrow<AuthException> {
|
||||
shortExpirationTimeJwtHandler.getMemberIdFromToken(token)
|
||||
}.errorCode shouldBe AuthErrorCode.EXPIRED_TOKEN
|
||||
|
||||
@ -90,7 +90,6 @@ class MemberServiceTest : FunSpec({
|
||||
memberWriter.create(request.name, request.email, request.password, Role.MEMBER)
|
||||
} throws MemberException(MemberErrorCode.DUPLICATE_EMAIL)
|
||||
|
||||
// when & then
|
||||
shouldThrow<MemberException> {
|
||||
memberService.createMember(request)
|
||||
}.also {
|
||||
|
||||
@ -48,7 +48,6 @@ class TossPaymentClientTest(
|
||||
.createResponse(it)
|
||||
}
|
||||
|
||||
// when
|
||||
val paymentRequest = SampleTossPaymentConst.paymentRequest
|
||||
val paymentResponse: PaymentApproveResponse = client.confirm(paymentRequest)
|
||||
|
||||
@ -68,7 +67,6 @@ class TossPaymentClientTest(
|
||||
.createResponse(it)
|
||||
}
|
||||
|
||||
// when
|
||||
val paymentRequest = SampleTossPaymentConst.paymentRequest
|
||||
|
||||
// then
|
||||
@ -107,7 +105,7 @@ class TossPaymentClientTest(
|
||||
.createResponse(it)
|
||||
}
|
||||
|
||||
// when
|
||||
|
||||
val cancelRequest: PaymentCancelRequest = SampleTossPaymentConst.cancelRequest
|
||||
val cancelResponse: PaymentCancelResponse = client.cancel(cancelRequest)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user