From 46055d2fb11123e35f146ba74f33fd79e0461d85 Mon Sep 17 00:00:00 2001 From: kalai-tw <104360355+kalai-tw@users.noreply.github.com> Date: Fri, 17 May 2024 00:30:33 +0530 Subject: [PATCH] FM2-635: ValueSetTranslatorImplTest unit test failure fix (#540) --- .../fhir2/api/translators/impl/ValueSetTranslatorImplTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/src/test/java/org/openmrs/module/fhir2/api/translators/impl/ValueSetTranslatorImplTest.java b/api/src/test/java/org/openmrs/module/fhir2/api/translators/impl/ValueSetTranslatorImplTest.java index 799406591..feaa333e1 100644 --- a/api/src/test/java/org/openmrs/module/fhir2/api/translators/impl/ValueSetTranslatorImplTest.java +++ b/api/src/test/java/org/openmrs/module/fhir2/api/translators/impl/ValueSetTranslatorImplTest.java @@ -33,6 +33,7 @@ import org.openmrs.ConceptReferenceTerm; import org.openmrs.ConceptSet; import org.openmrs.ConceptSource; +import org.openmrs.ConceptMapType; import org.openmrs.module.fhir2.FhirTestConstants; import org.openmrs.module.fhir2.TestFhirSpringConfiguration; import org.openmrs.module.fhir2.api.FhirConceptSourceService; @@ -75,8 +76,10 @@ public void shouldTranslateConceptSetToValueSet() { ConceptMap conceptMap = mock(ConceptMap.class); ConceptReferenceTerm conceptReferenceTerm = mock(ConceptReferenceTerm.class); ConceptSource conceptSource = mock(ConceptSource.class); + ConceptMapType conceptMapType=mock(ConceptMapType.class); when(conceptMap.getConceptReferenceTerm()).thenReturn(conceptReferenceTerm); + when(conceptMap.getConceptMapType()).thenReturn(conceptMapType); when(conceptReferenceTerm.getConceptSource()).thenReturn(conceptSource); when(conceptReferenceTerm.getCode()).thenReturn("1000-1"); when(conceptSource.getName()).thenReturn("LOINC");