use of com.palantir.example.profile.schema.generated.UserPhotosStreamValueTable in project atlasdb by palantir.
the class ProfileStoreTest method testDeleteImage.
@Test
public void testDeleteImage() {
final UUID userId = storeUser();
storeImage(userId);
runWithRetry(Transaction.TransactionType.AGGRESSIVE_HARD_DELETE, store -> {
store.deleteImage(userId);
return userId;
});
txnMgr.runTaskWithRetry((TransactionTask<Void, RuntimeException>) txn -> {
ProfileTableFactory tables = ProfileTableFactory.of();
UserPhotosStreamValueTable streams = tables.getUserPhotosStreamValueTable(txn);
Assert.assertTrue(streams.getAllRowsUnordered().isEmpty());
return null;
});
}
Aggregations