use of com.scalar.db.api.ScanAll in project scalardb by scalar-labs.
the class ConsensusCommitSpecificIntegrationTestBase method scanAll_ScanAllGivenForDeletedWhenCoordinatorStateAbortedAndRolledBackByAnother_ShouldRollbackProperly.
@Test
public void scanAll_ScanAllGivenForDeletedWhenCoordinatorStateAbortedAndRolledBackByAnother_ShouldRollbackProperly() throws ExecutionException, CoordinatorException, CrudException {
ScanAll scanAll = prepareScanAll(namespace1, TABLE_1);
selection_SelectionGivenForDeletedWhenCoordinatorStateAbortedAndRolledBackByAnother_ShouldRollbackProperly(scanAll);
}
use of com.scalar.db.api.ScanAll in project scalardb by scalar-labs.
the class ConsensusCommitSpecificIntegrationTestBase method scanAll_ScanAllGivenForPreparedWhenCoordinatorStateAborted_ShouldRollback.
@Test
public void scanAll_ScanAllGivenForPreparedWhenCoordinatorStateAborted_ShouldRollback() throws CrudException, ExecutionException, CoordinatorException {
ScanAll scanAll = prepareScanAll(namespace1, TABLE_1);
selection_SelectionGivenForPreparedWhenCoordinatorStateAborted_ShouldRollback(scanAll);
}
use of com.scalar.db.api.ScanAll in project scalardb by scalar-labs.
the class ConsensusCommitSpecificIntegrationTestBase method scanAll_ScanAllGivenForDeletedWhenCoordinatorStateAborted_ShouldRollback.
@Test
public void scanAll_ScanAllGivenForDeletedWhenCoordinatorStateAborted_ShouldRollback() throws ExecutionException, CoordinatorException, CrudException {
ScanAll scanAll = prepareScanAll(namespace1, TABLE_1);
selection_SelectionGivenForDeletedWhenCoordinatorStateAborted_ShouldRollback(scanAll);
}
use of com.scalar.db.api.ScanAll in project scalardb by scalar-labs.
the class ConsensusCommitSpecificIntegrationTestBase method scanAll_NonOverlappingPutGivenBefore_ShouldScanAll.
@Test
public void scanAll_NonOverlappingPutGivenBefore_ShouldScanAll() throws CommitException, UnknownTransactionStatusException {
// Arrange
ConsensusCommit transaction = manager.start();
transaction.put(preparePut(0, 0, namespace1, TABLE_1).withIntValue(BALANCE, 1));
// Act
ScanAll scanAll = prepareScanAll(namespace2, TABLE_2);
Throwable thrown = catchThrowable(() -> transaction.scan(scanAll));
transaction.commit();
// Assert
assertThat(thrown).doesNotThrowAnyException();
}
use of com.scalar.db.api.ScanAll in project scalardb by scalar-labs.
the class ConsensusCommitSpecificIntegrationTestBase method scanAll_ScanAllGivenForDeletedWhenCoordinatorStateCommittedAndRolledForwardByAnother_ShouldRollforwardProperly.
@Test
public void scanAll_ScanAllGivenForDeletedWhenCoordinatorStateCommittedAndRolledForwardByAnother_ShouldRollforwardProperly() throws ExecutionException, CoordinatorException, CrudException {
ScanAll scanAll = prepareScanAll(namespace1, TABLE_1);
selection_SelectionGivenForDeletedWhenCoordinatorStateCommittedAndRolledForwardByAnother_ShouldRollforwardProperly(scanAll);
}
Aggregations