Removed DOCUMENT ME comments that were generated and applied source code
[utils] / security / src / test / java / org / wamblee / security / authorization / TestUserAccessor.java
index b4d8909781da1a8a7f18b3434e6f6dce2adcfba0..39706a91d7740cdbcfbd2fe792af598debcf9974 100644 (file)
@@ -30,51 +30,33 @@ import org.wamblee.usermgt.UserAdministrationImpl;
 import org.wamblee.usermgt.UserMgtException;
 import org.wamblee.usermgt.UserMgtException.Reason;
 
-
 /**
  * User access that always returns a user that belongs to a fixed group.
- *
+ * 
  * @author Erik Brakkee
  */
 public class TestUserAccessor implements UserAccessor {
-    /**
-     * DOCUMENT ME!
-     */
     private static final String USER = "erik";
 
-    /**
-     * DOCUMENT ME!
-     */
     private static final String PASSWORD = "abc123";
 
-    /**
-     * DOCUMENT ME!
-     */
     private static final String GROUP = "users";
 
     /*
      * (non-Javadoc)
-     *
+     * 
      * @see org.wamblee.usermgt.UserAccessor#getCurrentUser()
      */
-    /**
-     * DOCUMENT ME!
-     *
-     * @return DOCUMENT ME!
-     *
-     * @throws RuntimeException DOCUMENT ME!
-     */
     public User getCurrentUser() {
-        UserAdministration admin = new UserAdministrationImpl(new InMemoryUserSet(
-                    new RegexpNameValidator(
-                        RegexpNameValidator.PASSWORD_PATTERN,
-                        Reason.INVALID_PASSWORD,
-                        "Password must contain at least 6 characters"),
-                    new Md5HexMessageDigester()), new InMemoryGroupSet(),
-                new RegexpNameValidator(RegexpNameValidator.ID_PATTERN,
-                    Reason.INVALID_USERNAME, "Invalid user"),
-                new RegexpNameValidator(RegexpNameValidator.ID_PATTERN,
-                    Reason.INVALID_GROUPNAME, "Invalid group"));
+        UserAdministration admin = new UserAdministrationImpl(
+            new InMemoryUserSet(new RegexpNameValidator(
+                RegexpNameValidator.PASSWORD_PATTERN, Reason.INVALID_PASSWORD,
+                "Password must contain at least 6 characters"),
+                new Md5HexMessageDigester()), new InMemoryGroupSet(),
+            new RegexpNameValidator(RegexpNameValidator.ID_PATTERN,
+                Reason.INVALID_USERNAME, "Invalid user"),
+            new RegexpNameValidator(RegexpNameValidator.ID_PATTERN,
+                Reason.INVALID_GROUPNAME, "Invalid group"));
 
         try {
             Group group = admin.createGroup(GROUP);