mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 01:59:35 +00:00
bug6129: adjusted test case to new auth exception throwing/handling
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user