コード例 #1
0
  /** 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);
    }
  }
コード例 #2
0
  /** 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);
    }
  }