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

This commit is contained in:
Ben Alex 2004-03-28 12:15:11 +00:00
parent 489c941101
commit f203979237

View File

@ -48,10 +48,14 @@ public class UserTests extends TestCase {
junit.textui.TestRunner.run(UserTests.class); junit.textui.TestRunner.run(UserTests.class);
} }
public void testNoArgsConstructor() throws Exception { public void testNoArgConstructor() {
User user = new User(); try {
new User();
fail("Should have thrown IllegalArgumentException");
} catch (IllegalArgumentException expected) {
assertTrue(true); assertTrue(true);
} }
}
public void testNullValuesRejected() throws Exception { public void testNullValuesRejected() throws Exception {
try { try {