All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.stargate.it.cql.SnappyCompressionTest Maven / Gradle / Ivy

There is a newer version: 2.1.0-BETA-19
Show newest version
package io.stargate.it.cql;

import com.datastax.oss.driver.api.core.CqlSession;
import com.datastax.oss.driver.api.core.config.OptionsMap;
import com.datastax.oss.driver.api.core.config.TypedDriverOption;
import io.stargate.it.driver.CqlSessionSpec;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

@CqlSessionSpec(customOptions = "configureSnappy")
public class SnappyCompressionTest extends AbstractCompressionTest {

  public static void configureSnappy(OptionsMap config) {
    config.put(TypedDriverOption.PROTOCOL_COMPRESSION, "snappy");
  }

  @Test
  @DisplayName("Should connect and execute queries with Snappy compression")
  public void snappyCompressionTest(CqlSession session) {
    compressionTest(session);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy