*/
package org.wamblee.usermgt;
-import junit.framework.TestCase;
-
-import java.sql.SQLException;
-
import java.util.Set;
+import junit.framework.TestCase;
+
/**
* Tests the inmemory group set. Intended to be subclassed for other
* implementations of group set.
checkGroupCount(3);
}
+
+ public void testRenameGroupTwice() {
+ Group group = new Group("x");
+ groups.add(group);
+ groups.groupModified(group);
+ group.setName("y");
+ groups.groupModified(group);
+ Group g = groups.find("y");
+ assertNotNull(g);
+ groups.groupModified(group);
+ }
}