Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.simprints.infra.config.store.models

import com.google.common.truth.Truth.*
import com.simprints.infra.config.store.models.ExperimentalProjectConfiguration.Companion.ALLOW_CONFIRMING_GUIDS_NOT_IN_CALLBACK
import com.simprints.infra.config.store.models.ExperimentalProjectConfiguration.Companion.CAMERA_FLASH_CONTROLS_ENABLED
import com.simprints.infra.config.store.models.ExperimentalProjectConfiguration.Companion.ENABLE_ID_POOL_VALIDATION
import com.simprints.infra.config.store.models.ExperimentalProjectConfiguration.Companion.FACE_AUTO_CAPTURE_ENABLED
Expand Down Expand Up @@ -187,4 +188,20 @@ internal class ExperimentalProjectConfigurationTest {
assertThat(ExperimentalProjectConfiguration(config).ocrCaptures).isEqualTo(result)
}
}

@Test
fun `check allow confirming GUIDs not in callback flag correctly`() {
mapOf(
// Value not present
emptyMap<String, Any>() to false,
// Value not boolean
mapOf(ALLOW_CONFIRMING_GUIDS_NOT_IN_CALLBACK to 1) to false,
// Value present and FALSE
mapOf(ALLOW_CONFIRMING_GUIDS_NOT_IN_CALLBACK to false) to false,
// Value present and TRUE
mapOf(ALLOW_CONFIRMING_GUIDS_NOT_IN_CALLBACK to true) to true,
).forEach { (config, result) ->
assertThat(ExperimentalProjectConfiguration(config).allowConfirmingGuidsNotInCallback).isEqualTo(result)
}
}
}