bipinprasad commented on code in PR #3479:
URL: https://github.com/apache/storm/pull/3479#discussion_r880979339


##########
storm-client/test/jvm/org/apache/storm/TestConfigValidate.java:
##########
@@ -326,8 +316,8 @@ public void testPowerOf2Validator() {
         for (Object value : failCases) {
             try {
                 validator.validateField("test", value);
-                Assert.fail("Expected Exception not Thrown for value: " + 
value);
-            } catch (IllegalArgumentException Ex) {
+                fail("Expected Exception not Thrown for value: " + value);
+            } catch (IllegalArgumentException ignore) {

Review Comment:
   use assertThrows(IllegalArgumentException.class, ..)



-- 
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: dev-unsubscr...@storm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to