use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorTestBase method writeAsyncStringFailSafeTest.
@Test
void writeAsyncStringFailSafeTest() throws Exception {
BulkExecutor executor = newBulkExecutor(true);
WriteResult r = executor.writeAsync("should fail").get();
verifyFailedWriteResult(r);
verifySession(0, 1);
verifyListener(0, 1);
}
use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorITBase method writeAsyncStringTest.
// Tests for asynchronous write methods
@Test
void writeAsyncStringTest() throws Exception {
String query = WRITE_QUERIES.blockFirst();
WriteResult r = failFastExecutor.writeAsync(query).get();
verifySuccessfulWriteResult(r, query);
}
use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorITBase method writeSyncStringTest.
// Tests for synchronous write methods
@Test
void writeSyncStringTest() {
String query = WRITE_QUERIES.blockFirst();
WriteResult r = failFastExecutor.writeSync(query);
verifySuccessfulWriteResult(r, query);
}
use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorITBase method writeAsyncStatementTest.
@Test
void writeAsyncStatementTest() throws Exception {
WriteResult r = failFastExecutor.writeAsync(WRITE_STATEMENT).get();
verifySuccessfulWriteResult(r, String.format(WRITE_QUERY, 0, 0));
}
use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorITBase method writeAsyncStringFailSafeTest.
@Test
void writeAsyncStringFailSafeTest() throws Exception {
WriteResult r = failSafeExecutor.writeAsync(FAILED_QUERY).get();
verifyFailedWriteResult(r);
}
Aggregations