use of org.apache.pulsar.common.compression.CompressionCodecProvider in project incubator-pulsar by apache.
the class CompressorCodecTest method testCodecProvider.
@Test(dataProvider = "codec")
void testCodecProvider(CompressionType type) throws IOException {
CompressionCodecProvider provider = new CompressionCodecProvider();
CompressionCodec codec1 = provider.getCodec(type);
CompressionCodec codec2 = provider.getCodec(type);
// A single provider instance must return the same codec instance every time
assertTrue(codec1 == codec2);
}
Aggregations