@Test void testStatObject() throws IOException, InvalidKeyException, NoSuchAlgorithmException, InsufficientDataException, InternalException, NoResponseException, InvalidBucketNameException, XmlPullParserException, ErrorResponseException { String objectName = "MyObjectName"; ObjectStat objectStat = mock(ObjectStat.class); when(minioClient.statObject(bucketName, objectName)).thenReturn(objectStat); assertEquals(objectStat, minioClientFacade.statObject(objectName)); }
ObjectStat statObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { LOG.trace("Retrieving metadata for object '{}' in bucket '{}' ...", objectName, bucketName); ObjectStat objectStat = minioClient.statObject(bucketName, objectName); LOG.debug("Retrieved metadata for object '{}' in bucket '{}'", objectName, bucketName); return objectStat; }
MinioClientFacade { ObjectStat statObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { LOG.trace("Retrieving metadata for object '{}' in bucket '{}' ...", objectName, bucketName); ObjectStat objectStat = minioClient.statObject(bucketName, objectName); LOG.debug("Retrieved metadata for object '{}' in bucket '{}'", objectName, bucketName); return objectStat; } }
MinioClientFacade { ObjectStat statObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { LOG.trace("Retrieving metadata for object '{}' in bucket '{}' ...", objectName, bucketName); ObjectStat objectStat = minioClient.statObject(bucketName, objectName); LOG.debug("Retrieved metadata for object '{}' in bucket '{}'", objectName, bucketName); return objectStat; } MinioClientFacade(MinioClient minioClient, String bucketName); }
MinioClientFacade { ObjectStat statObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { LOG.trace("Retrieving metadata for object '{}' in bucket '{}' ...", objectName, bucketName); ObjectStat objectStat = minioClient.statObject(bucketName, objectName); LOG.debug("Retrieved metadata for object '{}' in bucket '{}'", objectName, bucketName); return objectStat; } MinioClientFacade(MinioClient minioClient, String bucketName);  }
MinioClientFacade { ObjectStat statObject(String objectName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { LOG.trace("Retrieving metadata for object '{}' in bucket '{}' ...", objectName, bucketName); ObjectStat objectStat = minioClient.statObject(bucketName, objectName); LOG.debug("Retrieved metadata for object '{}' in bucket '{}'", objectName, bucketName); return objectStat; } MinioClientFacade(MinioClient minioClient, String bucketName);   }