bug6129: adjusted test case to new auth exception throwing/handling

This commit is contained in:
Axel Uhl committed 2025-11-03 23:25:57 +01:00
1 parent 8e5b7f8a5a
commit 55fc93bd12
1 file changed
+2 -2
@@ -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
}
}
}