()
| 38 | public class TestZlib implements TestConf { |
| 39 | |
| 40 | @Test |
| 41 | public void testNoOverflow() throws Exception { |
| 42 | ByteBuffer in = ByteBuffer.allocate(10); |
| 43 | ByteBuffer out = ByteBuffer.allocate(10); |
| 44 | in.put(new byte[]{1,2,3,4,5,6,7,10}); |
| 45 | in.flip(); |
| 46 | CompressionCodec codec = new ZlibCodec(); |
| 47 | assertFalse(codec.compress(in, out, null, |
| 48 | codec.getDefaultOptions())); |
| 49 | } |
| 50 | |
| 51 | @Test |
| 52 | public void testCorrupt() throws Exception { |
nothing calls this directly
no test coverage detected