use of org.openmrs.module.emrapi.concept.EmrConceptService in project openmrs-module-coreapps by openmrs.
the class ParserEncounterIntoSimpleObjectsTest method setUp.
@Before
public void setUp() throws Exception {
emrApiProperties = mock(EmrApiProperties.class);
conceptService = mock(ConceptService.class);
locationService = mock(LocationService.class);
dispositionService = mock(DispositionService.class);
MockMetadataTestUtil.setupMockConceptService(conceptService, emrApiProperties);
emrConceptService = mock(EmrConceptService.class);
diagnosisMetadata = MockMetadataTestUtil.setupDiagnosisMetadata(emrApiProperties, conceptService);
dispositionDescriptor = MockMetadataTestUtil.setupDispositionDescriptor(conceptService);
when(dispositionService.getDispositionDescriptor()).thenReturn(dispositionDescriptor);
TestUiUtils testUiUtils = new TestUiUtils();
testUiUtils.setMockFormattingConcepts(true);
uiUtils = testUiUtils;
encounter = new Encounter();
parser = new ParserEncounterIntoSimpleObjects(encounter, uiUtils, emrApiProperties, locationService, dispositionService);
}
Aggregations