use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorTestBase method writeSyncStatementTest.
@Test
void writeSyncStatementTest() {
BulkExecutor executor = newBulkExecutor(false);
WriteResult r = executor.writeSync(successfulWrite1);
verifySuccessfulWriteResult(r);
verifySession(1, 0);
}
use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorTestBase method writeAsyncStatementTest.
@Test
void writeAsyncStatementTest() throws Exception {
BulkExecutor executor = newBulkExecutor(false);
WriteResult r = executor.writeAsync(successfulWrite1).get();
verifySuccessfulWriteResult(r);
verifySession(1, 0);
}
use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorTestBase method writeAsyncStringTest.
// Tests for asynchronous write methods
@Test
void writeAsyncStringTest() throws Exception {
BulkExecutor executor = newBulkExecutor(false);
WriteResult r = executor.writeAsync("write should succeed 1").get();
verifySuccessfulWriteResult(r);
verifySession(1, 0);
}
use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorITBase method writeAsyncStatementFailSafeTest.
@Test
void writeAsyncStatementFailSafeTest() throws Exception {
WriteResult r = failSafeExecutor.writeAsync(FAILED_STATEMENT).get();
verifyFailedWriteResult(r);
}
use of com.datastax.oss.dsbulk.executor.api.result.WriteResult in project dsbulk by datastax.
the class BulkExecutorITBase method writeSyncStringFailSafeTest.
@Test
void writeSyncStringFailSafeTest() {
WriteResult r = failSafeExecutor.writeSync(FAILED_QUERY);
verifyFailedWriteResult(r);
}
Aggregations