/** This method is used for test updateAuditByUserUUID */ @Test public void test3UpdateAuditByUserUUID() { try { AuditEntity auditEntity = auditService.getByUserUUID("402881f046a2cd6c0146a2cd74e80000"); auditEntity.setSessionId("testSessionId"); auditEntity.setCustName("testUpdateName"); auditEntity.setUpdateBy("testupdateUser"); auditEntity.setUpdateDate(GregorianCalendar.getInstance().getTime()); AuditEntity returnAuditEntity = auditService.updateAudit(auditEntity); Assert.assertNotNull(returnAuditEntity.getUuid()); } catch (Exception ex) { logger.error("Failed to update AuditEntity by User UUID", ex); } }
/** This method is used for test updateAuditByCustCIN */ @Test public void test2UpdateAuditByCustCIN() { try { AuditEntity auditEntity = auditService.getByCustomerCin("testCustID"); auditEntity.setSessionId("testSessionId"); auditEntity.setCustName("testUpdateName"); auditEntity.setUpdateBy("testupdateUser"); auditEntity.setUpdateDate(GregorianCalendar.getInstance().getTime()); AuditEntity returnAuditEntity = auditService.updateAudit(auditEntity); Assert.assertNotNull(returnAuditEntity.getUuid()); } catch (Exception ex) { logger.error("Failed to update AuditEntity by Cust CIN", ex); } }