addGoodLeaseDEL(leases, +5000, 60000, ++id, id, -10000);
// Lease that will generate a renewal failure because of a definie
// exception
addBadLease(leases, 60000, ++id, id, 2 * 60000,
new UnknownLeaseException());
// Lease that will generate a renewal failure because of an indefinie
// exception
addBadLease(leases, 60000, ++id, id, 2 * 60000, new RemoteException());
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLease(leases, -20000, ++id, id, -10000, null);
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLease(leases, -20000, ++id, id, +60000, null);
// Lease that will generate a renewal failure because of a definie
// exception
addBadLeaseDEL(leases, 60000, ++id, id, 2 * 60000,
new UnknownLeaseException());
// Lease that will generate a renewal failure because of an indefinie
// exception
addBadLeaseDEL(leases, 60000, ++id, id, 2 * 60000,
new RemoteException());
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLeaseDEL(leases, -20000, ++id, id, -10000, null);
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLeaseDEL(leases, -20000, ++id, id, +60000, null);
// Do it all again (twicw) but with batching
// Lease that should not get any events
addGoodLeaseDEL(leases, 60000, 60000, 0, ++id, Long.MAX_VALUE);
// Lease that should get a DER event
addGoodLeaseDEL(leases, 60000, 60000, 0, ++id, 2*60000);
// Lease that has already reached its desired expiration
// and should get a DER event
addGoodLeaseDEL(leases, -5000, 60000, 0, ++id, -10000);
// Lease that has already reached its desired expiration
// and should get a DER event
addGoodLeaseDEL(leases, +5000, 60000, 0, ++id, -10000);
// Lease that should get no events
addGoodLease(leases, 60000, 60000, 0, ++id, Long.MAX_VALUE);
// Lease that would get a DER event but only registers a LeaesListener
addGoodLease(leases, 60000, 60000, 0, ++id, 2*60000);
// Lease that has already reached its desired expiration
// and would get a DER event but only registers a LeaesListener
addGoodLeaseDEL(leases, -5000, 60000, 0, ++id, -10000);
// Lease that has already reached its desired expiration
// and would get a DER event but only registers a LeaesListener
addGoodLeaseDEL(leases, +5000, 60000, 0, ++id, -10000);
// Lease that will generate a renewal failure because of a definie
// exception
addBadLease(leases, 60000, 0, ++id, 2 * 60000,
new UnknownLeaseException());
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLease(leases, -20000, 0, ++id, -10000, null);
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLease(leases, -20000, 0, ++id, +60000, null);
// Lease that will generate a renewal failure because of a definie
// exception
addBadLeaseDEL(leases, 60000, 0, ++id, 2 * 60000,
new UnknownLeaseException());
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLeaseDEL(leases, -20000, 0, ++id, -10000, null);
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLeaseDEL(leases, -20000, 0, ++id, +60000, null);
// Lease that should not get any events
addGoodLeaseDEL(leases, 60000, 60000, 1, ++id, Long.MAX_VALUE);
// Lease that should get a DER event
addGoodLeaseDEL(leases, 60000, 60000, 1, ++id, 2*60000);
// Lease that has already reached its desired expiration
// and should get a DER event
addGoodLeaseDEL(leases, -5000, 60000, 1, ++id, -10000);
// Lease that has already reached its desired expiration
// and should get a DER event
addGoodLeaseDEL(leases, +5000, 60000, 1, ++id, -10000);
// Lease that should get no events
addGoodLease(leases, 60000, 60000, 1, ++id, Long.MAX_VALUE);
// Lease that would get a DER event but only registers a LeaesListener
addGoodLease(leases, 60000, 60000, 1, ++id, 2*60000);
// Lease that has already reached its desired expiration
// and would get a DER event but only registers a LeaesListener
addGoodLeaseDEL(leases, -5000, 60000, 1, ++id, -10000);
// Lease that has already reached its desired expiration
// and would get a DER event but only registers a LeaesListener
addGoodLeaseDEL(leases, +5000, 60000, 1, ++id, -10000);
// Lease that will generate a renewal failure because of a definie
// exception
addBadLease(leases, 60000, 1, ++id, 2 * 60000,
new UnknownLeaseException());
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLease(leases, -20000, 1, ++id, -10000, null);
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLease(leases, -20000, 1, ++id, +60000, null);
// Lease that will generate a renewal failure because of a definie
// exception
addBadLeaseDEL(leases, 60000, 1, ++id, 2 * 60000,
new UnknownLeaseException());
// Lease that will generate a renewal failure because it has already
// expired and it has not reached its desired expiration
addBadLeaseDEL(leases, -20000, 1, ++id, -10000, null);