now using the simplified user management interface.
[utils] / security / impl / src / test / java / org / wamblee / security / authentication / UsermgtTestUtils.java
index c6bc3a3df26344ac48c5b0b99c8c4ae4620e7bf9..c1dedaa44ae0aba983bfcaffe2f8f76958453260 100644 (file)
@@ -53,9 +53,11 @@ public class UsermgtTestUtils {
 
     public static User createUser(String aName, String aPassword, Group aGroup)
         throws UserMgtException {
-        return new User(aName, aPassword, aGroup, new RegexpNameValidator(
+        User user = new User(aName, aPassword, new RegexpNameValidator(
             RegexpNameValidator.PASSWORD_PATTERN, Reason.INVALID_PASSWORD,
             "Password must be at least 6 chars"), new Md5HexMessageDigester());
+        user.addGroup(aGroup);
+        return user; 
     }
 
     public static void addUserToGroup(User aUser, Group aGroup)