Search in sources :

Example 11 with ReconnectionPolicy

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

the class ModuleCassandraDevClusterTest method testProvideReconnectPolicy.

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

Aggregations

ReconnectionPolicy (com.datastax.driver.core.policies.ReconnectionPolicy)11 Cluster (com.datastax.driver.core.Cluster)7 LoadBalancingPolicy (com.datastax.driver.core.policies.LoadBalancingPolicy)4 RetryPolicy (com.datastax.driver.core.policies.RetryPolicy)4 Test (org.junit.Test)4 IntegrationTest (tech.sirwellington.alchemy.annotations.testing.IntegrationTest)4 Bean (org.springframework.context.annotation.Bean)3 ConstantReconnectionPolicy (com.datastax.driver.core.policies.ConstantReconnectionPolicy)2 ExponentialReconnectionPolicy (com.datastax.driver.core.policies.ExponentialReconnectionPolicy)2 Test (org.testng.annotations.Test)2 Session (com.datastax.driver.core.Session)1 TupleType (com.datastax.driver.core.TupleType)1 NoHostAvailableException (com.datastax.driver.core.exceptions.NoHostAvailableException)1 ReconnectionSchedule (com.datastax.driver.core.policies.ReconnectionPolicy.ReconnectionSchedule)1 ZonedDateTimeCodec (com.datastax.driver.extras.codecs.jdk8.ZonedDateTimeCodec)1 InetSocketAddress (java.net.InetSocketAddress)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1