use of com.hazelcast.jet.impl.util.AsyncSnapshotWriterImpl.CustomByteArrayOutputStream in project hazelcast by hazelcast.
the class AsyncSnapshotWriterImplTest method when_bufferExceeded_then_thrown.
/* ***********************************/
/* CustomByteArrayOutputStream tests */
/* ***********************************/
@Test
public void when_bufferExceeded_then_thrown() {
// Given
CustomByteArrayOutputStream os = new CustomByteArrayOutputStream(4);
os.write(1);
os.write(1);
os.write(1);
os.write(1);
// Then
exception.expect(RuntimeException.class);
// When
os.write(1);
}
Aggregations