@Test void testPutObject() throws IOException, XmlPullParserException, NoSuchAlgorithmException, InvalidKeyException, InvalidArgumentException, InternalException, NoResponseException, InvalidBucketNameException, InsufficientDataException, ErrorResponseException { String objectName = "MyObjectName"; InputStream inputStream = mock(InputStream.class); String contentType = "application/octet-stream"; minioClientFacade.putObject(objectName, inputStream, contentType); verify(minioClient).putObject(bucketName, objectName, inputStream, contentType); }
void putObject(String objectName, InputStream stream, String contentType) throws InvalidBucketNameException, NoSuchAlgorithmException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException, InsufficientDataException { LOG.trace("Putting object '{}' in bucket '{}' ...", objectName, bucketName); minioClient.putObject(bucketName, objectName, stream, contentType); LOG.debug("Put object '{}' in bucket '{}'", objectName, bucketName); }
MinioClientFacade { void putObject(String objectName, InputStream stream, String contentType) throws InvalidBucketNameException, NoSuchAlgorithmException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException, InsufficientDataException { LOG.trace("Putting object '{}' in bucket '{}' ...", objectName, bucketName); minioClient.putObject(bucketName, objectName, stream, contentType); LOG.debug("Put object '{}' in bucket '{}'", objectName, bucketName); } }
MinioClientFacade { void putObject(String objectName, InputStream stream, String contentType) throws InvalidBucketNameException, NoSuchAlgorithmException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException, InsufficientDataException { LOG.trace("Putting object '{}' in bucket '{}' ...", objectName, bucketName); minioClient.putObject(bucketName, objectName, stream, contentType); LOG.debug("Put object '{}' in bucket '{}'", objectName, bucketName); } MinioClientFacade(MinioClient minioClient, String bucketName); }
MinioClientFacade { void putObject(String objectName, InputStream stream, String contentType) throws InvalidBucketNameException, NoSuchAlgorithmException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException, InsufficientDataException { LOG.trace("Putting object '{}' in bucket '{}' ...", objectName, bucketName); minioClient.putObject(bucketName, objectName, stream, contentType); LOG.debug("Put object '{}' in bucket '{}'", objectName, bucketName); } MinioClientFacade(MinioClient minioClient, String bucketName);  }
MinioClientFacade { void putObject(String objectName, InputStream stream, String contentType) throws InvalidBucketNameException, NoSuchAlgorithmException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException, InsufficientDataException { LOG.trace("Putting object '{}' in bucket '{}' ...", objectName, bucketName); minioClient.putObject(bucketName, objectName, stream, contentType); LOG.debug("Put object '{}' in bucket '{}'", objectName, bucketName); } MinioClientFacade(MinioClient minioClient, String bucketName);   }