/** * @see retireLabSpecimenTemplate(LabSpecimenTemplate labSpecimenTemplate, String reason) * @verifies retire LabSpecimenTemplate */ @Test @SkipBaseSetup public void retireLabSpecimenTemplate_shouldRetireLabSpecimenTemplate() throws Exception { LabSpecimenTemplate labSpecimenTemplate = Context.getService(LabCatalogService.class) .getLabSpecimenTemplateByUuid("35442792-49b7-11e1-812a-0024e8c61285"); Context.getService(LabCatalogService.class).retireLabSpecimenTemplate(labSpecimenTemplate, ""); labSpecimenTemplate = Context.getService(LabCatalogService.class) .getLabSpecimenTemplateByUuid("35442792-49b7-11e1-812a-0024e8c61285"); Assert.assertNotNull("retireLabSpecimenTemplate should not return null", labSpecimenTemplate); Assert.assertEquals( "retireLabSpecimenTemplate should return the right object with voided true", "true", labSpecimenTemplate.getRetired().toString()); }