in component-test/src/main/java/org/apache/fineract/cn/office/TestEmployee.java [200:214]
public void shouldNotUpdateEmployeeNotFound() throws Exception {
final Employee employee = EmployeeFactory.createRandomEmployee();
this.organizationManager.createEmployee(employee);
this.eventRecorder.wait(EventConstants.OPERATION_POST_EMPLOYEE, employee.getIdentifier());
try {
this.organizationManager.updateEmployee(RandomStringUtils.randomAlphanumeric(8), employee);
Assert.fail();
} catch (final NotFoundException ex) {
// do nothing, expected
}
this.organizationManager.deleteEmployee(employee.getIdentifier());
this.eventRecorder.wait(EventConstants.OPERATION_DELETE_EMPLOYEE, employee.getIdentifier());
}