use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class ZIPCompressionOutputStreamTest method getCompressionProvider.
@Test
public void getCompressionProvider() {
CompressionProvider provider = outStream.getCompressionProvider();
assertEquals(provider.getName(), PROVIDER_NAME);
}
use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class ZIPCompressionOutputStreamTest method testAddEntryAndWrite.
@Test
public void testAddEntryAndWrite() throws IOException {
CompressionProvider provider = outStream.getCompressionProvider();
ByteArrayOutputStream out = new ByteArrayOutputStream();
outStream = new ZIPCompressionOutputStream(out, provider);
outStream.addEntry("./test.zip", null);
outStream.write("Test".getBytes());
}
Aggregations