From b31555926c59aafe9a310d64918002b91d51c676 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Tue, 22 Aug 2023 12:02:06 -0700 Subject: [PATCH] Fix the exception type in JwtVendorTests Signed-off-by: Ryan Liang --- .../org/opensearch/security/authtoken/jwt/JwtVendorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/opensearch/security/authtoken/jwt/JwtVendorTest.java b/src/test/java/org/opensearch/security/authtoken/jwt/JwtVendorTest.java index 5afe7271e8..7c03ff912d 100644 --- a/src/test/java/org/opensearch/security/authtoken/jwt/JwtVendorTest.java +++ b/src/test/java/org/opensearch/security/authtoken/jwt/JwtVendorTest.java @@ -161,7 +161,7 @@ public void testCreateJwtWithBadEncryptionKey() { throw new RuntimeException(e); } }); - Assert.assertEquals("java.lang.RuntimeException: encryption_key cannot be null", exception.getMessage()); + Assert.assertEquals("java.lang.IllegalArgumentException: encryption_key cannot be null", exception.getMessage()); } @Test