[#13] Theme 도메인 코드 코틀린 마이그레이션 #15

Merged
pricelees merged 17 commits from refactor/#13 into main 2025-07-17 16:37:27 +00:00
Showing only changes of commit f517752e44 - Show all commits

View File

@ -8,6 +8,7 @@ import jakarta.persistence.EntityManager
import org.hamcrest.Matchers.equalTo
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.boot.test.web.server.LocalServerPort
import org.springframework.test.context.jdbc.Sql
import org.springframework.transaction.support.TransactionTemplate
import roomescape.theme.business.ThemeService
import roomescape.theme.util.TestThemeCreateUtil
@ -20,13 +21,13 @@ import kotlin.random.Random
* 날짜 범위, 예약 수만 검증
*/
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@Sql(value = ["/truncate.sql"], executionPhase = Sql.ExecutionPhase.AFTER_TEST_CLASS)
class MostReservedThemeAPITest(
@LocalServerPort val port: Int,
val themeService: ThemeService,
val transactionTemplate: TransactionTemplate,
val entityManager: EntityManager,
) : FunSpec() {
init {
beforeSpec {
transactionTemplate.executeWithoutResult {