raju-balpande commented on PR #5531:
URL: https://github.com/apache/ozone/pull/5531#issuecomment-1790598749

   The exception been raised is The Exception type is 
CommandLine$ExecutionException and the motive to check the cuase by 
ArrayIndexOutOfBoundsException on index 5. And hence changed the line:
   `assertTrue(e.getMessage()
             .contains("java.lang.ArrayIndexOutOfBoundsException: 5"));`
   to 
   `      assertTrue(e.getCause() instanceof ArrayIndexOutOfBoundsException);
         assertTrue(e.getMessage().contains(": 5"));`
         
   The reason for change is:
   In some jdk version the message returned was 
`java.lang.ArrayIndexOutOfBoundsException: 5' and in some version it is 
`java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 5`


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