use of io.confluent.ksql.api.client.BatchedQueryResult in project ksql by confluentinc.
the class ConsistencyOffsetVectorFunctionalTest method shouldRoundTripCVWhenExecutePullQuery.
@Test
public void shouldRoundTripCVWhenExecutePullQuery() throws Exception {
// When
final BatchedQueryResult batchedQueryResult = consistencClient.executeQuery(PULL_QUERY_ON_TABLE);
final List<Row> rows = batchedQueryResult.get();
// Then
assertThat(rows, hasSize(1));
assertThat(batchedQueryResult.queryID().get(), is(notNullValue()));
assertThatEventually(() -> ((ClientImpl) consistencClient).getSerializedConsistencyVector(), is(notNullValue()));
final String serializedCV = ((ClientImpl) consistencClient).getSerializedConsistencyVector();
verifyConsistencyVector(serializedCV);
}
Aggregations