use of com.palantir.atlasdb.table.description.generated.SchemaApiTestV2Table in project atlasdb by palantir.
the class SchemaApiTestV2Impl method testUpdateEntryIfEntryDoesNotExist.
@Test
public void testUpdateEntryIfEntryDoesNotExist() {
AbstractTransaction transaction = mock(AbstractTransaction.class);
SchemaApiTestV2Table table = spy(tableFactory.getSchemaApiTestV2Table(transaction));
doReturn(Optional.empty()).when(table).getColumn1(TEST_ROW_KEY);
table.updateColumn1(TEST_ROW_KEY, entry -> entry + 1);
verify(table, never()).putColumn1(any(), anyLong());
}
use of com.palantir.atlasdb.table.description.generated.SchemaApiTestV2Table in project atlasdb by palantir.
the class SchemaApiTestV2Impl method deleteWholeRow.
@Override
protected void deleteWholeRow(Transaction transaction, String rowKey) {
SchemaApiTestV2Table table = tableFactory.getSchemaApiTestV2Table(transaction);
table.deleteRow(rowKey);
}
Aggregations