Search in sources :

Example 6 with ReconnectionPolicy

use of com.datastax.driver.core.policies.ReconnectionPolicy in project aroma-data-operations by RedRoma.

the class ModuleCassandraDevClusterTest method testProvideCassandraCluster.

@Test
public void testProvideCassandraCluster() {
    ReconnectionPolicy policy = instance.provideReconnectPolicy();
    Cluster cluster = instance.provideCassandraCluster(policy);
    assertThat(cluster, notNullValue());
}
Also used : ReconnectionPolicy(com.datastax.driver.core.policies.ReconnectionPolicy) Cluster(com.datastax.driver.core.Cluster) Test(org.junit.Test) IntegrationTest(tech.sirwellington.alchemy.annotations.testing.IntegrationTest)

Aggregations

ReconnectionPolicy (com.datastax.driver.core.policies.ReconnectionPolicy)6 Cluster (com.datastax.driver.core.Cluster)4 Test (org.junit.Test)4 IntegrationTest (tech.sirwellington.alchemy.annotations.testing.IntegrationTest)4 Session (com.datastax.driver.core.Session)1 NoHostAvailableException (com.datastax.driver.core.exceptions.NoHostAvailableException)1 LoadBalancingPolicy (com.datastax.driver.core.policies.LoadBalancingPolicy)1 ReconnectionSchedule (com.datastax.driver.core.policies.ReconnectionPolicy.ReconnectionSchedule)1 RetryPolicy (com.datastax.driver.core.policies.RetryPolicy)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1