Skip to content

Instantly share code, notes, and snippets.

View antofar's full-sized avatar

Antonio antofar

View GitHub Profile
private static final int DEFAULT_BUFFER_SIZE = 1024 * 1024 * 4;
/**
* Test that bytes are written to the provided WriteStream correctly and the callback returns
* the excepted result.
*/
@Test
public void happyPathWriteWithNotAlignedBuffer() {
byte[] bytes = "123456789ABCDEF".getBytes();