Search in sources :

Example 1 with RowBuilder

use of com.datastax.oss.simulacron.common.stubbing.PrimeDsl.RowBuilder in project java-driver by datastax.

the class AllLoadBalancingPoliciesSimulacronIT method reset.

@Before
public void reset() {
    SIMULACRON_RULE.cluster().start();
    SIMULACRON_RULE.cluster().clearLogs();
    SIMULACRON_RULE.cluster().clearPrimes(true);
    SIMULACRON_RULE.cluster().prime(PrimeDsl.when("SELECT * FROM system_schema.keyspaces").then(new RowBuilder().columnTypes(KEYSPACE_COLUMNS).row(KEYSPACE_ROW).build()));
}
Also used : RowBuilder(com.datastax.oss.simulacron.common.stubbing.PrimeDsl.RowBuilder) Before(org.junit.Before)

Aggregations

RowBuilder (com.datastax.oss.simulacron.common.stubbing.PrimeDsl.RowBuilder)1 Before (org.junit.Before)1