use of com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache in project atlasdb by palantir.
the class LockWatchValueIntegrationTest method assertHitValues.
private void assertHitValues(Transaction transaction, Set<CellReference> expectedCells) {
TransactionScopedCache cache = extractTransactionCache(transaction);
cache.finalise();
assertThat(cache.getHitDigest().hitCells()).containsExactlyInAnyOrderElementsOf(expectedCells);
}
use of com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache in project atlasdb by palantir.
the class LockWatchValueIntegrationTest method assertLoadedValues.
private void assertLoadedValues(Transaction transaction, Map<CellReference, CacheValue> expectedValues) {
TransactionScopedCache cache = extractTransactionCache(transaction);
cache.finalise();
assertThat(cache.getValueDigest().loadedValues()).containsExactlyInAnyOrderEntriesOf(expectedValues);
}
Aggregations