use of com.palantir.atlasdb.schema.generated.SweepPriorityTable.SweepPriorityRowResult in project atlasdb by palantir.
the class TransactionRemotingTest method testGetRangeSome.
@Test
public void testGetRangeSome() {
setupFooStatus1("sweep.priority");
TransactionToken token = TransactionToken.autoCommit();
RangeToken range = service.getRange(token, new TableRange("sweep.priority", new byte[0], new byte[0], ImmutableList.<byte[]>of(), 10));
SweepPriorityRowResult result = SweepPriorityRowResult.of(Iterables.getOnlyElement(range.getResults().getResults()));
Assert.assertEquals(1L, result.getCellsExamined().longValue());
Assert.assertNull(range.getNextRange());
}
use of com.palantir.atlasdb.schema.generated.SweepPriorityTable.SweepPriorityRowResult in project atlasdb by palantir.
the class TransactionRemotingTest method testGetRowsSome.
@Test
public void testGetRowsSome() {
setupFooStatus1("sweep.priority");
TransactionToken txId = TransactionToken.autoCommit();
TableRowResult goodResults = service.getRows(txId, new TableRowSelection("sweep.priority", ImmutableList.of(SweepPriorityRow.of("foo").persistToBytes()), ColumnSelection.all()));
SweepPriorityRowResult result = SweepPriorityRowResult.of(Iterables.getOnlyElement(goodResults.getResults()));
Assert.assertEquals(1L, result.getCellsExamined().longValue());
}
Aggregations