Skip to content

Commit

Permalink
dto 변경에 따른 테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
punkryn committed May 4, 2024
1 parent a442eea commit 203457c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.tiketeer.TiketeerWaiting.domain.waiting.usecase

import com.tiketeer.TiketeerWaiting.configuration.EmbeddedRedisConfig
import com.tiketeer.TiketeerWaiting.domain.waiting.controller.dto.RankAndToken
import com.tiketeer.TiketeerWaiting.domain.waiting.usecase.dto.GetRankAndTokenCommandDto
import com.tiketeer.TiketeerWaiting.domain.waiting.usecase.dto.GetRankAndTokenResultDto
import org.junit.jupiter.api.BeforeEach

import org.junit.jupiter.api.Test
Expand Down Expand Up @@ -39,8 +39,8 @@ class GetRankAndTokenUseCaseTest {
val entryTime = System.currentTimeMillis()
val result = getRankAndTokenUseCase.getRankAndToken(GetRankAndTokenCommandDto(email, ticketingId, entryTime))

StepVerifier.create(result.rankAndToken)
.expectNext(RankAndToken(0, "${email}:${ticketingId}:${entryTime}"))
StepVerifier.create(result)
.expectNext(GetRankAndTokenResultDto(0, "${email}:${ticketingId}:${entryTime}"))
.expectComplete()
.verify()
}
Expand All @@ -52,15 +52,15 @@ class GetRankAndTokenUseCaseTest {
val email = "test${i}@test.com"
val entryTime = System.currentTimeMillis()
val result = getRankAndTokenUseCase.getRankAndToken(GetRankAndTokenCommandDto(email, ticketingId, entryTime))
result.rankAndToken.block()
result.block()
}

val email = "[email protected]"
val entryTime = System.currentTimeMillis()
val result = getRankAndTokenUseCase.getRankAndToken(GetRankAndTokenCommandDto(email, ticketingId, entryTime))

StepVerifier.create(result.rankAndToken)
.expectNext(RankAndToken(entrySize.toLong()))
StepVerifier.create(result)
.expectNext(GetRankAndTokenResultDto(entrySize.toLong()))
.expectComplete()
.verify()
}
Expand Down

0 comments on commit 203457c

Please sign in to comment.