@Test void testGetObject() throws IOException, InvalidKeyException, NoSuchAlgorithmException, InsufficientDataException, InvalidArgumentException, InternalException, NoResponseException, InvalidBucketNameException, XmlPullParserException, ErrorResponseException { String objectName = "MyObjectName"; InputStream inputStream = mock(InputStream.class); when(minioClient.getObject(bucketName, objectName)).thenReturn(inputStream); assertEquals(inputStream, minioClientFacade.getObject(objectName)); }
InputStream getObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException { LOG.trace("Streaming object '{}' in bucket '{}' ...", objectName, bucketName); return minioClient.getObject(bucketName, objectName); }
MinioClientFacade { InputStream getObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException { LOG.trace("Streaming object '{}' in bucket '{}' ...", objectName, bucketName); return minioClient.getObject(bucketName, objectName); } }
MinioClientFacade { InputStream getObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException { LOG.trace("Streaming object '{}' in bucket '{}' ...", objectName, bucketName); return minioClient.getObject(bucketName, objectName); } MinioClientFacade(MinioClient minioClient, String bucketName); }
MinioClientFacade { InputStream getObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException { LOG.trace("Streaming object '{}' in bucket '{}' ...", objectName, bucketName); return minioClient.getObject(bucketName, objectName); } MinioClientFacade(MinioClient minioClient, String bucketName);  }
MinioClientFacade { InputStream getObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException, InvalidArgumentException { LOG.trace("Streaming object '{}' in bucket '{}' ...", objectName, bucketName); return minioClient.getObject(bucketName, objectName); } MinioClientFacade(MinioClient minioClient, String bucketName);   }