Increase test coverage.

This commit is contained in:
Ben Alex 2004-04-23 04:51:56 +00:00
parent 83d871cd5d
commit babb908fea
1 changed files with 8 additions and 0 deletions

View File

@ -82,6 +82,14 @@ public class UserTests extends TestCase {
} catch (IllegalArgumentException expected) {
assertTrue(true);
}
try {
User user = new User("marissa", "koala", true,
new GrantedAuthority[] {new GrantedAuthorityImpl("ROLE_ONE"), null});
fail("Should have thrown IllegalArgumentException");
} catch (IllegalArgumentException expected) {
assertTrue(true);
}
}
public void testNullWithinGrantedAuthorityElementIsRejected()