DATACASS-217 - Add support for LZ4 compression.

Original pull request: #82.
This commit is contained in:
Mark Paluch
2016-08-29 10:55:14 +02:00
committed by John Blum
parent 5465afdbcf
commit 23cb654b18
4 changed files with 23 additions and 3 deletions

View File

@@ -101,6 +101,22 @@ public class CassandraCqlClusterFactoryBeanUnitTests {
assertThat(getConfiguration(bean).getProtocolOptions().getCompression(), is(Compression.SNAPPY));
}
/**
* @see <a href="https://jira.spring.io/browse/DATACASS-217">DATACASS-217</a>
* @throws Exception
*/
@Test
public void shouldSetLZ4CompressionType() throws Exception {
CompressionType compressionType = CompressionType.LZ4;
CassandraCqlClusterFactoryBean bean = new CassandraCqlClusterFactoryBean();
bean.setCompressionType(compressionType);
bean.afterPropertiesSet();
assertThat(getConfiguration(bean).getProtocolOptions().getCompression(), is(Compression.LZ4));
}
/**
* @see <a href="https://jira.spring.io/browse/DATACASS-226">DATACASS-226</a>
* @throws Exception