Skip to content

Commit

Permalink
FM2-635: ValueSetTranslatorImplTest unit test failure fix (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalai-tw committed May 16, 2024
1 parent c7f2ec2 commit 46055d2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 46055d2

Please sign in to comment.