Search in sources :

Example 6 with ContinuousCqlRequestAsyncProcessor

use of com.datastax.dse.driver.internal.core.cql.continuous.ContinuousCqlRequestAsyncProcessor in project java-driver by datastax.

the class ContinuousCqlRequestReactiveProcessorTest method should_create_request_handler.

@Test
public void should_create_request_handler() {
    RequestHandlerTestHarness.Builder builder = continuousHarnessBuilder().withProtocolVersion(DSE_V1);
    try (RequestHandlerTestHarness harness = builder.build()) {
        ContinuousCqlRequestReactiveProcessor processor = new ContinuousCqlRequestReactiveProcessor(new ContinuousCqlRequestAsyncProcessor());
        assertThat(processor.process(UNDEFINED_IDEMPOTENCE_STATEMENT, harness.getSession(), harness.getContext(), "test")).isInstanceOf(DefaultContinuousReactiveResultSet.class);
    }
}
Also used : ContinuousCqlRequestAsyncProcessor(com.datastax.dse.driver.internal.core.cql.continuous.ContinuousCqlRequestAsyncProcessor) RequestHandlerTestHarness(com.datastax.oss.driver.internal.core.cql.RequestHandlerTestHarness) Test(org.junit.Test)

Aggregations

ContinuousCqlRequestAsyncProcessor (com.datastax.dse.driver.internal.core.cql.continuous.ContinuousCqlRequestAsyncProcessor)6 Test (org.junit.Test)4 RequestHandlerTestHarness (com.datastax.oss.driver.internal.core.cql.RequestHandlerTestHarness)3 ContinuousReactiveResultSet (com.datastax.dse.driver.api.core.cql.continuous.reactive.ContinuousReactiveResultSet)2 ReactiveRow (com.datastax.dse.driver.api.core.cql.reactive.ReactiveRow)2 ColumnDefinitions (com.datastax.oss.driver.api.core.cql.ColumnDefinitions)2 ExecutionInfo (com.datastax.oss.driver.api.core.cql.ExecutionInfo)2 InternalDriverContext (com.datastax.oss.driver.internal.core.context.InternalDriverContext)2 CqlRequestAsyncProcessor (com.datastax.oss.driver.internal.core.cql.CqlRequestAsyncProcessor)2 DefaultSession (com.datastax.oss.driver.internal.core.session.DefaultSession)2 UseDataProvider (com.tngtech.java.junit.dataprovider.UseDataProvider)2 ContinuousCqlRequestSyncProcessor (com.datastax.dse.driver.internal.core.cql.continuous.ContinuousCqlRequestSyncProcessor)1 ContinuousCqlRequestReactiveProcessor (com.datastax.dse.driver.internal.core.cql.continuous.reactive.ContinuousCqlRequestReactiveProcessor)1 CqlRequestReactiveProcessor (com.datastax.dse.driver.internal.core.cql.reactive.CqlRequestReactiveProcessor)1 CqlPrepareAsyncProcessor (com.datastax.oss.driver.internal.core.cql.CqlPrepareAsyncProcessor)1 CqlPrepareSyncProcessor (com.datastax.oss.driver.internal.core.cql.CqlPrepareSyncProcessor)1 CqlRequestSyncProcessor (com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor)1 PoolBehavior (com.datastax.oss.driver.internal.core.cql.PoolBehavior)1