diff options
| author | Paul-Christian Volkmer | 2026-01-22 14:06:07 +0100 |
|---|---|---|
| committer | GitHub | 2026-01-22 13:06:07 +0000 |
| commit | 2ba333c771c100ac463f9ca854185ed80c1ac7c4 (patch) | |
| tree | d20a8f555310e6ef8ef2301403f601fc0df3ba77 /src/test | |
| parent | c9ccf9c1c92e49f927f2346e27032acd87174f48 (diff) | |
feat!: allow missing GenomDE gICS domain name (#244)
If no domain name is given vor GenomDE consent, this will
be ignored and the consent information must be present
in incoming MTB data in order to satisfy DNPM:DIP.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/kotlin/dev/dnpm/etl/processor/services/ConsentProcessorTest.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/kotlin/dev/dnpm/etl/processor/services/ConsentProcessorTest.kt b/src/test/kotlin/dev/dnpm/etl/processor/services/ConsentProcessorTest.kt index 3e54e71..02165a6 100644 --- a/src/test/kotlin/dev/dnpm/etl/processor/services/ConsentProcessorTest.kt +++ b/src/test/kotlin/dev/dnpm/etl/processor/services/ConsentProcessorTest.kt @@ -10,11 +10,6 @@ import dev.dnpm.etl.processor.consent.GicsConsentService import dev.pcvolkmer.mv64e.mtb.Mtb import dev.pcvolkmer.mv64e.mtb.MvhSubmissionType import dev.pcvolkmer.mv64e.mtb.Patient -import java.io.IOException -import java.io.InputStream -import java.time.Instant -import java.time.OffsetDateTime -import java.util.* import org.assertj.core.api.Assertions.assertThat import org.hl7.fhir.r4.model.Bundle import org.hl7.fhir.r4.model.CodeableConcept @@ -33,6 +28,11 @@ import org.mockito.kotlin.doAnswer import org.mockito.kotlin.eq import org.mockito.kotlin.whenever import org.springframework.core.io.ClassPathResource +import java.io.IOException +import java.io.InputStream +import java.time.Instant +import java.time.OffsetDateTime +import java.util.* @ExtendWith(MockitoExtension::class) class ConsentProcessorTest { @@ -49,7 +49,7 @@ class ConsentProcessorTest { @Mock gicsConsentService: GicsConsentService, ) { - this.gIcsConfigProperties = GIcsConfigProperties("https://gics.example.com") + this.gIcsConfigProperties = GIcsConfigProperties(uri = "https://gics.example.com", genomDeConsentDomainName = "GenomDE_MV") val jacksonConfig = JacksonConfig() this.objectMapper = jacksonConfig.objectMapper() this.fhirContext = JacksonConfig.fhirContext() |
