Increase test coverage.
This commit is contained in:
parent
83d871cd5d
commit
babb908fea
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue