}
public void testUpdateAuditWithClear()
throws Exception
{
AuditSession audit = getAuditSession();
long beginCreateTime = System.currentTimeMillis();
audit.createAudit("testUpdateAuditWithClear");
long endCreateTime = System.currentTimeMillis();
long beginUpdateTime = System.currentTimeMillis();
audit.updateAudit("testUpdateAuditWithClear", "testUpdateAuditWithClearUpdate");
long endUpdateTime = System.currentTimeMillis();
String failure = audit.createAuditCheck("testUpdateAuditWithClear", "audituser1", beginCreateTime, endCreateTime);
if (failure != null)
fail(failure);
failure = audit.updateAuditCheck("testUpdateAuditWithClear", "audituser2", beginUpdateTime, endUpdateTime);
if (failure != null)
fail(failure);
}