Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @see {@link EncounterService#saveEncounterType(EncounterType)}}
- * @see {@link EncounterService#checkIfEncounterTypesAreLocked()}}
- */
- @Test(expected = EncounterTypeLockedException.class)
- @Verifies(value = "throw error when trying to save encounter type when encounter types are locked", method = "saveEncounterType(EncounterType)")
- public void saveEncounterType_throwErrorWhenTryingToSaveEncounterTypeWhenEncounterTypesAreLocked() throws Exception {
- // dataset to lock encounter types
- executeDataSet("../../../../../../../web/src/test/resources/org/openmrs/web/encounter/include/EncounterTypeFormControllerTest.xml");
- EncounterService encounterService = Context.getEncounterService();
- EncounterType encounterType = Context.getEncounterService().getEncounterType(1);
- Assert.assertNotNull(encounterType);
- encounterService.saveEncounterType(encounterType);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement