@Test void testDelete() throws IOException, InvalidKeyException, NoSuchAlgorithmException, InsufficientDataException, InvalidArgumentException, InternalException, NoResponseException, InvalidBucketNameException, XmlPullParserException, ErrorResponseException { String blobId = "MyBlobId"; minioBlobStore.delete(blobId); verify(minioClientFacade).removeObject(blobId); }
@Override public void delete(String blobId) { try { minioClientFacade.removeObject(blobId); } catch (IOException e) { throw new UncheckedIOException(e); } catch (InvalidBucketNameException | NoSuchAlgorithmException | InsufficientDataException | InvalidKeyException | NoResponseException | XmlPullParserException | ErrorResponseException | InternalException | InvalidArgumentException e) { throw new UncheckedIOException(new IOException(e)); } }
MinioBlobStore implements BlobStore { @Override public void delete(String blobId) { try { minioClientFacade.removeObject(blobId); } catch (IOException e) { throw new UncheckedIOException(e); } catch (InvalidBucketNameException | NoSuchAlgorithmException | InsufficientDataException | InvalidKeyException | NoResponseException | XmlPullParserException | ErrorResponseException | InternalException | InvalidArgumentException e) { throw new UncheckedIOException(new IOException(e)); } } }
MinioBlobStore implements BlobStore { @Override public void delete(String blobId) { try { minioClientFacade.removeObject(blobId); } catch (IOException e) { throw new UncheckedIOException(e); } catch (InvalidBucketNameException | NoSuchAlgorithmException | InsufficientDataException | InvalidKeyException | NoResponseException | XmlPullParserException | ErrorResponseException | InternalException | InvalidArgumentException e) { throw new UncheckedIOException(new IOException(e)); } } MinioBlobStore(MinioClientFacade minioClientFacade, IdGenerator idGenerator); }
MinioBlobStore implements BlobStore { @Override public void delete(String blobId) { try { minioClientFacade.removeObject(blobId); } catch (IOException e) { throw new UncheckedIOException(e); } catch (InvalidBucketNameException | NoSuchAlgorithmException | InsufficientDataException | InvalidKeyException | NoResponseException | XmlPullParserException | ErrorResponseException | InternalException | InvalidArgumentException e) { throw new UncheckedIOException(new IOException(e)); } } MinioBlobStore(MinioClientFacade minioClientFacade, IdGenerator idGenerator); @Override BlobMetadata store(ReadableByteChannel fromChannel); @Override void delete(String blobId); @Override ReadableByteChannel newChannel(String blobId); }
MinioBlobStore implements BlobStore { @Override public void delete(String blobId) { try { minioClientFacade.removeObject(blobId); } catch (IOException e) { throw new UncheckedIOException(e); } catch (InvalidBucketNameException | NoSuchAlgorithmException | InsufficientDataException | InvalidKeyException | NoResponseException | XmlPullParserException | ErrorResponseException | InternalException | InvalidArgumentException e) { throw new UncheckedIOException(new IOException(e)); } } MinioBlobStore(MinioClientFacade minioClientFacade, IdGenerator idGenerator); @Override BlobMetadata store(ReadableByteChannel fromChannel); @Override void delete(String blobId); @Override ReadableByteChannel newChannel(String blobId);  }