use of com.hazelcast.spi.impl.operationservice.BackupAwareOperation in project hazelcast by hazelcast.
the class OperationBackupHandlerTest method backup_whenTooLargeAsyncBackupCount.
@Test(expected = IllegalArgumentException.class)
public void backup_whenTooLargeAsyncBackupCount() throws Exception {
setup(BACKPRESSURE_ENABLED);
BackupAwareOperation op = makeOperation(0, MAX_BACKUP_COUNT + 1);
backupHandler.sendBackups0(op);
}
use of com.hazelcast.spi.impl.operationservice.BackupAwareOperation in project hazelcast by hazelcast.
the class OperationBackupHandlerTest method backup_whenNegativeSyncBackupCount.
// ============================ backup =================================
@Test(expected = IllegalArgumentException.class)
public void backup_whenNegativeSyncBackupCount() throws Exception {
setup(BACKPRESSURE_ENABLED);
BackupAwareOperation op = makeOperation(-1, 0);
backupHandler.sendBackups0(op);
}
use of com.hazelcast.spi.impl.operationservice.BackupAwareOperation in project hazelcast by hazelcast.
the class OperationBackupHandlerTest method backup_whenTooLargeSumOfSyncAndAsync.
@Test(expected = IllegalArgumentException.class)
public void backup_whenTooLargeSumOfSyncAndAsync() throws Exception {
setup(BACKPRESSURE_ENABLED);
BackupAwareOperation op = makeOperation(1, MAX_BACKUP_COUNT);
backupHandler.sendBackups0(op);
}
Aggregations