Commit b6e28c9e authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix tests

parent fbd8e811
Pipeline #26122 passed with stages
in 24 minutes and 22 seconds
......@@ -51,9 +51,9 @@ class IntegrationTest {
val internal = mockk<ElasticSearchWrapper>()
every { internal.getRecordSetName("soz-004") } returns LanguageContainer.placeholder("soz-004")
every { internal.getInstitutionName("soz") } returns FacetContainer.placeholder("soz")
every { internal.getExtraInstitutionsFromRecordSet("soz-004", "access") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("soz-004", "original") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("soz-004", "master") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("soz-004", "accessInstitution") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("soz-004", "originalInstitution") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("soz-004", "masterInstitution") } returns emptyList()
internal
}
......
......@@ -23,9 +23,9 @@ class TestDocumentsSearchDoc {
private val elasticSearchWrapperMocked = run {
val internal = mockk<ElasticSearchWrapper>()
every { internal.getRecordSetName("") } returns LanguageContainer.EMPTY
every { internal.getExtraInstitutionsFromRecordSet("", "access") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "original") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "master") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "accessInstitution") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "originalInstitution") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "masterInstitution") } returns emptyList()
internal
}
......
......@@ -18,9 +18,9 @@ class TestTransform {
private val elasticSearchWrapperMocked = run {
val internal = mockk<ElasticSearchWrapper>()
every { internal.getRecordSetName("") } returns LanguageContainer.EMPTY
every { internal.getExtraInstitutionsFromRecordSet("", "access") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "original") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "master") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "accessInstitution") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "originalInstitution") } returns emptyList()
every { internal.getExtraInstitutionsFromRecordSet("", "masterInstitution") } returns emptyList()
internal
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment