From f2345fcb215db9e3f5ffb5d97567449cde546381 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 3 Jul 2012 13:09:46 -0500 Subject: [PATCH] SEC-1981: Remove dependency on Locale for the build --- .../security/core/userdetails/jdbc/JdbcDaoImplTests.java | 1 - .../web/authentication/switchuser/SwitchUserFilterTests.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/test/java/org/springframework/security/core/userdetails/jdbc/JdbcDaoImplTests.java b/core/src/test/java/org/springframework/security/core/userdetails/jdbc/JdbcDaoImplTests.java index 6d3fabaae2..a4768c23b6 100644 --- a/core/src/test/java/org/springframework/security/core/userdetails/jdbc/JdbcDaoImplTests.java +++ b/core/src/test/java/org/springframework/security/core/userdetails/jdbc/JdbcDaoImplTests.java @@ -89,7 +89,6 @@ public class JdbcDaoImplTests extends TestCase { dao.loadUserByUsername("cooper"); fail("Should have thrown UsernameNotFoundException"); } catch (UsernameNotFoundException expected) { - assertEquals("User cooper has no GrantedAuthority", expected.getMessage()); } } diff --git a/web/src/test/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilterTests.java b/web/src/test/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilterTests.java index 3ac33958e3..943fd5be53 100644 --- a/web/src/test/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilterTests.java +++ b/web/src/test/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilterTests.java @@ -158,7 +158,7 @@ public class SwitchUserFilterTests { filter.doFilter(request, response, chain); verify(chain, never()).doFilter(request, response); - assertEquals("Authentication Failed: User is disabled", response.getErrorMessage()); + assertNotNull(response.getErrorMessage()); // Now check for the redirect request.setContextPath("/mywebapp");