fix(i18n): 지원하지 않는 원문 언어 번역 작업을 제외한다
This commit is contained in:
@@ -84,4 +84,21 @@ class TranslationJobSchedulerTest {
|
||||
|
||||
Mockito.verify(jobRepository, Mockito.never()).save(Mockito.any(TranslationJob::class.java))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun shouldNotCreateJobWhenSourceLanguageIsUnsupported() {
|
||||
val jobRepository = Mockito.mock(TranslationJobRepository::class.java)
|
||||
val scheduler = TranslationJobScheduler(jobRepository)
|
||||
|
||||
scheduler.scheduleMissingTranslation(
|
||||
resourceType = LanguageTranslationTargetType.CONTENT,
|
||||
resourceId = 10L,
|
||||
fieldKey = "title",
|
||||
sourceText = "제목",
|
||||
sourceLanguage = "fr",
|
||||
targetLanguage = "en"
|
||||
)
|
||||
|
||||
Mockito.verifyNoInteractions(jobRepository)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user