Skip to content

Commit

Permalink
Test: Add checking language.
Browse files Browse the repository at this point in the history
  • Loading branch information
huGgW committed Mar 1, 2024
1 parent 306be5b commit f9078d3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
"""
Expand Down Expand Up @@ -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
"""
Expand Down

0 comments on commit f9078d3

Please sign in to comment.