From f9078d35c43e45161e7ad47d501e840b191daf29 Mon Sep 17 00:00:00 2001 From: huGgW Date: Sat, 2 Mar 2024 00:33:30 +0900 Subject: [PATCH] Test: Add checking language. --- .../csereal/core/reseach/service/ResearchServiceTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/kotlin/com/wafflestudio/csereal/core/reseach/service/ResearchServiceTest.kt b/src/test/kotlin/com/wafflestudio/csereal/core/reseach/service/ResearchServiceTest.kt index fe7a8538..c7e8e91d 100644 --- a/src/test/kotlin/com/wafflestudio/csereal/core/reseach/service/ResearchServiceTest.kt +++ b/src/test/kotlin/com/wafflestudio/csereal/core/reseach/service/ResearchServiceTest.kt @@ -17,9 +17,11 @@ import io.kotest.matchers.shouldBe import io.kotest.matchers.shouldNotBe import org.springframework.boot.test.context.SpringBootTest import org.springframework.data.repository.findByIdOrNull +import org.springframework.test.context.ActiveProfiles import org.springframework.transaction.annotation.Transactional @SpringBootTest +@ActiveProfiles("test") @Transactional class ResearchServiceTest( private val researchService: ResearchService, @@ -79,6 +81,7 @@ class ResearchServiceTest( val research = researchRepository.findByIdOrNull(createdResearchDto.id)!! val researchSearch = research.researchSearch researchSearch shouldNotBe null + researchSearch!!.language shouldBe LanguageType.KO researchSearch!!.content shouldBe """ @@ -243,6 +246,7 @@ class ResearchServiceTest( val lab = labRepository.findByIdOrNull(createdLabDto.id)!! val researchSearch = lab.researchSearch researchSearch shouldNotBe null + researchSearch!!.language shouldBe LanguageType.KO researchSearch!!.content shouldBe """