Expand unit test coverage.

This commit is contained in:
Ben Alex 2004-04-18 11:54:51 +00:00
parent ff38767efd
commit 5dbef97a1d
2 changed files with 4 additions and 2 deletions

View File

@ -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")});

View File

@ -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));
}
}