cxorm commented on a change in pull request #92: HDDS-2345. Add a UT for newly added clone() in OmBucketInfo URL: https://github.com/apache/hadoop-ozone/pull/92#discussion_r339434522
########## File path: hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/helpers/TestOmBucketInfo.java ########## @@ -41,6 +42,21 @@ public void protobufConversion() { OmBucketInfo.getFromProtobuf(bucket.getProtobuf()); Assert.assertEquals(bucket, afterSerialization); + } + + @Test + public void testClone() { + OmBucketInfo omBucketInfo = OmBucketInfo.newBuilder() + .setBucketName("bucket") + .setVolumeName("vol1") + .setCreationTime(Time.now()) + .setIsVersionEnabled(false) + .setStorageType(StorageType.ARCHIVE) + .build(); Review comment: Thanks @bharatviswa504 the advise. Updated. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org