private void testBase32EmptyOutputStream(final int chunkSize) throws Exception { final byte[] emptyEncoded = new byte[0]; final byte[] emptyDecoded = new byte[0]; testByteByByte(emptyEncoded, emptyDecoded, chunkSize, CRLF); testByChunk(emptyEncoded, emptyDecoded, chunkSize, CRLF); }
/** * Test the Base32OutputStream implementation against empty input. * * @throws Exception * for some failure scenarios. */ @Test public void testBase32EmptyOutputStreamMimeChunkSize() throws Exception { testBase32EmptyOutputStream(BaseNCodec.MIME_CHUNK_SIZE); }
testByteByByte(encoded, decoded, 76, CRLF); encoded = randomData[1]; decoded = randomData[0]; testByteByByte(encoded, decoded, 0, LF);
testByChunk(encoded, decoded, BaseNCodec.MIME_CHUNK_SIZE, CRLF); encoded = randomData[1]; decoded = randomData[0]; testByChunk(encoded, decoded, 0, LF);
/** * Test the Base32OutputStream implementation against empty input. * * @throws Exception * for some failure scenarios. */ @Test public void testBase32EmptyOutputStreamPemChunkSize() throws Exception { testBase32EmptyOutputStream(BaseNCodec.PEM_CHUNK_SIZE); }