Browse Source

Update to be compatible to changes made to User's no-arg constructor.

Ben Alex 21 years ago
parent
commit
f203979237
1 changed files with 7 additions and 3 deletions
  1. 7 3
      core/src/test/java/org/acegisecurity/providers/dao/UserTests.java

+ 7 - 3
core/src/test/java/org/acegisecurity/providers/dao/UserTests.java

@@ -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 {