mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Removed audit result time ordering tests, which depends on millisecond accurancy
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16711 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -226,11 +226,11 @@ public class AuditDAOTest extends TestCase
|
||||
txnHelper.doInTransaction(findCallback);
|
||||
assertTrue("Expected at least one result", count.intValue() > 0);
|
||||
|
||||
// Make sure that the last two entries are in forward order (ascending time)
|
||||
Long lastTimestamp = timestamps.removeLast();
|
||||
Long secondLastTimeStamp = timestamps.removeLast();
|
||||
assertTrue("The timestamps should be in ascending order", lastTimestamp.compareTo(secondLastTimeStamp) > 0);
|
||||
|
||||
// // Make sure that the last two entries are in forward order (ascending time)
|
||||
// Long lastTimestamp = timestamps.removeLast();
|
||||
// Long secondLastTimeStamp = timestamps.removeLast();
|
||||
// assertTrue("The timestamps should be in ascending order", lastTimestamp.compareTo(secondLastTimeStamp) > 0);
|
||||
//
|
||||
// Make sure that the last two entries differ in time
|
||||
wait(1000L);
|
||||
|
||||
@@ -246,11 +246,11 @@ public class AuditDAOTest extends TestCase
|
||||
};
|
||||
timestamps.clear();
|
||||
txnHelper.doInTransaction(findReverseCallback);
|
||||
|
||||
// Make sure that the last two entries are in reverse order (descending time)
|
||||
lastTimestamp = timestamps.removeLast();
|
||||
secondLastTimeStamp = timestamps.removeLast();
|
||||
assertTrue("The timestamps should be in descending order", lastTimestamp.compareTo(secondLastTimeStamp) < 0);
|
||||
//
|
||||
// // Make sure that the last two entries are in reverse order (descending time)
|
||||
// lastTimestamp = timestamps.removeLast();
|
||||
// secondLastTimeStamp = timestamps.removeLast();
|
||||
// assertTrue("The timestamps should be in descending order", lastTimestamp.compareTo(secondLastTimeStamp) < 0);
|
||||
}
|
||||
|
||||
public void testAuditDeleteEntries() throws Exception
|
||||
|
Reference in New Issue
Block a user