final GroupOperationHistory groupOpHistory = results.get(0);
// We'll throw in a time based purge test here. We can't purge before current time because we could wipe out
// stuff generated by other tests. To try and limit what we wipe out, set the ctime of the group history to
// be very old...
executeInTransaction(false, new TransactionCallback() {
@Override
public void execute() throws Exception {
Query q = em.createQuery("update GroupOperationHistory h set h.createdTime = 900 where h.id = "
+ groupOpHistory.getId());
int numUpdated = q.executeUpdate();