@Test void testDelete() { String blobId = "MyBlobId"; transactionalBlobStoreDecorator.delete(blobId); verify(blobStore).delete(blobId); }
@Override public void delete(String blobId) { super.delete(blobId); String transactionId = (String) getResource(TRANSACTION_ID_RESOURCE_NAME); transactionBlobMap.remove(transactionId, blobId); }
TransactionalBlobStoreDecorator extends BlobStoreDecorator implements TransactionListener { @Override public void delete(String blobId) { super.delete(blobId); String transactionId = (String) getResource(TRANSACTION_ID_RESOURCE_NAME); transactionBlobMap.remove(transactionId, blobId); } }
TransactionalBlobStoreDecorator extends BlobStoreDecorator implements TransactionListener { @Override public void delete(String blobId) { super.delete(blobId); String transactionId = (String) getResource(TRANSACTION_ID_RESOURCE_NAME); transactionBlobMap.remove(transactionId, blobId); } TransactionalBlobStoreDecorator(BlobStore delegateBlobStore); }
TransactionalBlobStoreDecorator extends BlobStoreDecorator implements TransactionListener { @Override public void delete(String blobId) { super.delete(blobId); String transactionId = (String) getResource(TRANSACTION_ID_RESOURCE_NAME); transactionBlobMap.remove(transactionId, blobId); } TransactionalBlobStoreDecorator(BlobStore delegateBlobStore); @Override BlobMetadata store(ReadableByteChannel fromChannel); @Override void delete(String blobId); @Override void rollbackTransaction(String transactionId); @Override void doCleanupAfterCompletion(String transactionId); }
TransactionalBlobStoreDecorator extends BlobStoreDecorator implements TransactionListener { @Override public void delete(String blobId) { super.delete(blobId); String transactionId = (String) getResource(TRANSACTION_ID_RESOURCE_NAME); transactionBlobMap.remove(transactionId, blobId); } TransactionalBlobStoreDecorator(BlobStore delegateBlobStore); @Override BlobMetadata store(ReadableByteChannel fromChannel); @Override void delete(String blobId); @Override void rollbackTransaction(String transactionId); @Override void doCleanupAfterCompletion(String transactionId);  }