use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class GZIPCompressionInputStreamTest method getZIPCompressionProvider.
@Test
public void getZIPCompressionProvider() {
CompressionProvider provider = inStream.getCompressionProvider();
assertEquals(provider.getName(), PROVIDER_NAME);
}
use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class GZIPCompressionOutputStreamTest method testAddEntry.
@Test
public void testAddEntry() throws IOException {
CompressionProvider provider = outStream.getCompressionProvider();
ByteArrayOutputStream out = new ByteArrayOutputStream();
outStream = new GZIPCompressionOutputStream(out, provider);
outStream.addEntry(null, null);
}
use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class SnappyCompressionOutputStreamTest method setUp.
@Before
public void setUp() throws Exception {
factory = CompressionProviderFactory.getInstance();
CompressionProvider provider = factory.getCompressionProviderByName(PROVIDER_NAME);
ByteArrayOutputStream in = new ByteArrayOutputStream();
outStream = new SnappyCompressionOutputStream(in, provider);
}
use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class SnappyCompressionOutputStreamTest method testWrite.
@Test
public void testWrite() throws IOException {
CompressionProvider provider = outStream.getCompressionProvider();
ByteArrayOutputStream out = new ByteArrayOutputStream();
outStream = new SnappyCompressionOutputStream(out, provider);
outStream.write("Test".getBytes());
}
use of org.pentaho.di.core.compress.CompressionProvider in project pentaho-kettle by pentaho.
the class ZIPCompressionInputStreamTest method getZIPCompressionProvider.
@Test
public void getZIPCompressionProvider() {
CompressionProvider provider = inStream.getCompressionProvider();
assertEquals(provider.getName(), PROVIDER_NAME);
}
Aggregations