diff --git a/core/src/test/java/org/acegisecurity/providers/dao/salt/ReflectionSaltSourceTests.java b/core/src/test/java/org/acegisecurity/providers/dao/salt/ReflectionSaltSourceTests.java index 744d4aa0c3..5db350b92a 100644 --- a/core/src/test/java/org/acegisecurity/providers/dao/salt/ReflectionSaltSourceTests.java +++ b/core/src/test/java/org/acegisecurity/providers/dao/salt/ReflectionSaltSourceTests.java @@ -83,9 +83,10 @@ public class ReflectionSaltSourceTests extends TestCase { assertEquals("getUsername", saltSource.getUserPropertyToUse()); } - public void testNormalOperation() { + public void testNormalOperation() throws Exception { ReflectionSaltSource saltSource = new ReflectionSaltSource(); saltSource.setUserPropertyToUse("getUsername"); + saltSource.afterPropertiesSet(); User user = new User("scott", "wombat", true, new GrantedAuthority[] {new GrantedAuthorityImpl("HOLDER")}); diff --git a/core/src/test/java/org/acegisecurity/providers/dao/salt/SystemWideSaltSourceTests.java b/core/src/test/java/org/acegisecurity/providers/dao/salt/SystemWideSaltSourceTests.java index 9840202055..f2d00ac872 100644 --- a/core/src/test/java/org/acegisecurity/providers/dao/salt/SystemWideSaltSourceTests.java +++ b/core/src/test/java/org/acegisecurity/providers/dao/salt/SystemWideSaltSourceTests.java @@ -62,9 +62,10 @@ public class SystemWideSaltSourceTests extends TestCase { assertEquals("helloWorld", saltSource.getSystemWideSalt()); } - public void testNormalOperation() { + public void testNormalOperation() throws Exception { SystemWideSaltSource saltSource = new SystemWideSaltSource(); saltSource.setSystemWideSalt("helloWorld"); + saltSource.afterPropertiesSet(); assertEquals("helloWorld", saltSource.getSalt(null)); } }