use of com.palantir.atlasdb.keyvalue.api.CheckAndSetRequest in project atlasdb by palantir.
the class AbstractKeyValueServiceTest method testCheckAndSetAndBackAgain.
@Test
public void testCheckAndSetAndBackAgain() {
testCheckAndSetFromOtherValue();
CheckAndSetRequest thirdRequest = CheckAndSetRequest.singleCell(TEST_TABLE, TEST_CELL, value01, value00);
keyValueService.checkAndSet(thirdRequest);
verifyCheckAndSet(TEST_CELL, value00);
}
use of com.palantir.atlasdb.keyvalue.api.CheckAndSetRequest in project atlasdb by palantir.
the class AbstractKeyValueServiceTest method testCheckAndSetFromNoValueWhenValueIsPresent.
@Test(expected = CheckAndSetException.class)
public void testCheckAndSetFromNoValueWhenValueIsPresent() {
Assume.assumeTrue(checkAndSetSupported());
CheckAndSetRequest request = CheckAndSetRequest.newCell(TEST_TABLE, TEST_CELL, value00);
keyValueService.checkAndSet(request);
keyValueService.checkAndSet(request);
}
Aggregations