@Test public void testZlibCompressor() { Compressor testCompressor = ZlibCompressor.newInstance(); byte[] testResult = testCompressor.compress(this.testData.getBytes()); Assert.assertNotNull(testData); String verifyResult = new String(testCompressor.decompress(testResult)); Assert.assertNotNull(verifyResult); Assert.assertEquals(this.testData, verifyResult); }
private ZlibCompressor() {}
ZlibCompressor implements Compressor { private ZlibCompressor() {} }
ZlibCompressor implements Compressor { private ZlibCompressor() {} private  ZlibCompressor(); }
ZlibCompressor implements Compressor { private ZlibCompressor() {} private  ZlibCompressor(); @Override byte[] compress(byte[] bytes); @Override byte[] decompress(byte[] bytes); static Compressor newInstance(); }
ZlibCompressor implements Compressor { private ZlibCompressor() {} private  ZlibCompressor(); @Override byte[] compress(byte[] bytes); @Override byte[] decompress(byte[] bytes); static Compressor newInstance();  }