hemantk-12 commented on code in PR #6012:
URL: https://github.com/apache/ozone/pull/6012#discussion_r1841000490


##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/request/key/TestOMKeyRequest.java:
##########
@@ -322,4 +324,21 @@ protected SnapshotInfo createSnapshot(String snapshotName) 
throws Exception {
     return snapshotInfo;
   }
 
+  @Test
+  public void testValidateKeyArgs() {
+    OMKeyRequest.ValidateKeyArgs validateKeyArgs1 = new 
OMKeyRequest.ValidateKeyArgs.Builder()
+        
.setKeyName("tmpKey").setSnapshotReservedWord("tmpSnapshotReservedWord").build();
+    
assertTrue("tmpSnapshotReservedWord".equals(validateKeyArgs1.getSnapshotReservedWord()));

Review Comment:
   It would be better to use `assertEquals`, `assertFalse`, and `assertThat`. 
Can you please change them accordingly?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to