mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 13:32:30 +00:00
Update to be compatible to changes made to User's no-arg constructor.
This commit is contained in:
parent
489c941101
commit
f203979237
@ -48,9 +48,13 @@ public class UserTests extends TestCase {
|
||||
junit.textui.TestRunner.run(UserTests.class);
|
||||
}
|
||||
|
||||
public void testNoArgsConstructor() throws Exception {
|
||||
User user = new User();
|
||||
assertTrue(true);
|
||||
public void testNoArgConstructor() {
|
||||
try {
|
||||
new User();
|
||||
fail("Should have thrown IllegalArgumentException");
|
||||
} catch (IllegalArgumentException expected) {
|
||||
assertTrue(true);
|
||||
}
|
||||
}
|
||||
|
||||
public void testNullValuesRejected() throws Exception {
|
||||
|
Loading…
x
Reference in New Issue
Block a user