exceptionfactory commented on code in PR #6939:
URL: https://github.com/apache/nifi/pull/6939#discussion_r1119423748


##########
nifi-commons/nifi-property-encryptor/src/test/java/org/apache/nifi/encrypt/KeyedCipherPropertyEncryptorTest.java:
##########
@@ -77,26 +70,26 @@ public void testEncryptHexadecimalEncoded() throws 
DecoderException {
     @Test
     public void testDecryptEncryptionException() {
         final String encodedProperty = 
Hex.encodeHexString(PROPERTY.getBytes(DEFAULT_CHARSET));
-        assertThrows(EncryptionException.class, () -> 
encryptor.decrypt(encodedProperty));
+        assertThrows(Exception.class, () -> 
encryptor.decrypt(encodedProperty));

Review Comment:
   The thrown exception is different based the Java version, so switching to 
the more generic Exception provided the least amount of impact to the unit test.



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

Reply via email to