use of org.openmrs.module.pihcore.config.Config in project openmrs-module-pihcore by PIH.
the class MirebalaisActivatorTest method setUp.
@Before
public void setUp() throws Exception {
initializeInMemoryDatabase();
executeDataSet("requiredDataTestDataset.xml");
authenticate();
deployService.installBundle(conceptsFromMetadataSharing);
createEmrApiMappingSource(metadataMappingService);
activator = new PihCoreActivator();
Config config = mock(Config.class);
when(config.getCountry()).thenReturn(ConfigDescriptor.Country.HAITI);
when(config.getSite()).thenReturn(ConfigDescriptor.Site.MIREBALAIS);
when(config.getBiometricsConfig()).thenReturn(new BiometricsConfigDescriptor());
activator.setConfig(config);
activator.started();
}
Aggregations