From 55fc93bd1267a573df7bf3f218a76590f2e4e090 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Mon, 3 Nov 2025 23:25:57 +0100 Subject: [PATCH] bug6129: adjusted test case to new auth exception throwing/handling --- .../src/com/sap/sse/aicore/impl/ReadCredentialsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com.sap.sse.aicore.test/src/com/sap/sse/aicore/impl/ReadCredentialsTest.java b/java/com.sap.sse.aicore.test/src/com/sap/sse/aicore/impl/ReadCredentialsTest.java index 22e530c1b6e..025939f5a15 100644 --- a/java/com.sap.sse.aicore.test/src/com/sap/sse/aicore/impl/ReadCredentialsTest.java +++ b/java/com.sap.sse.aicore.test/src/com/sap/sse/aicore/impl/ReadCredentialsTest.java @@ -22,8 +22,8 @@ public class ReadCredentialsTest { try { ((CredentialsImpl) c).fetchToken(); fail("Expected an unauthorized (401) error code"); - } catch (IOException e) { - assertTrue(e.getMessage().contains("401")); // expected + } catch (SecurityException e) { + assertTrue(e.getMessage().contains("Authentication failed: Unauthorized")); // expected } } }