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:
Derek Hulley
2009-10-06 14:25:51 +00:00
parent 174e22a9f2
commit 5365c3d6ef

View File

@@ -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