use of com.datastax.oss.simulacron.common.result.ErrorResult in project dsbulk by datastax.
the class SimulacronUtils method primeSystemPeersV2.
public static void primeSystemPeersV2(BoundCluster simulacron) {
Query whenSelectSystemPeersV2 = new Query(SELECT_SYSTEM_PEERS_V2);
ErrorResult thenThrowServerError = new ServerErrorResult("Unknown keyspace/cf pair (system.peers_v2)");
RequestPrime primeSystemPeersV2 = new RequestPrime(whenSelectSystemPeersV2, thenThrowServerError);
simulacron.prime(new Prime(primeSystemPeersV2));
}
Aggregations