X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fusermgt%2FInMemoryGroupSetTest.java;h=56091f0018d7266c696266ba151d4a3cfa5828d5;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=e71b3e315485aa033201609469558b19761f02ea;hpb=89c06d4d52b46c154128c97d6e758fa1f4fc7a6e;p=utils diff --git a/security/src/test/java/org/wamblee/usermgt/InMemoryGroupSetTest.java b/security/src/test/java/org/wamblee/usermgt/InMemoryGroupSetTest.java index e71b3e31..56091f00 100644 --- a/security/src/test/java/org/wamblee/usermgt/InMemoryGroupSetTest.java +++ b/security/src/test/java/org/wamblee/usermgt/InMemoryGroupSetTest.java @@ -21,34 +21,27 @@ import java.sql.SQLException; import java.util.Set; - /** * Tests the inmemory group set. Intended to be subclassed for other * implementations of group set. */ public class InMemoryGroupSetTest extends TestCase { - /** - * DOCUMENT ME! - */ protected GroupSet groups; /** * This method must be overriden in subclasses. - * + * * @return New group set object. */ protected GroupSet createGroupSet() { return new InMemoryGroupSet(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.wamblee.test.SpringTestCase#setUp() */ - /** - * DOCUMENT ME! - * - * @throws Exception DOCUMENT ME! - */ @Override protected void setUp() throws Exception { super.setUp(); @@ -58,10 +51,10 @@ public class InMemoryGroupSetTest extends TestCase { /** * Additional check to be implemented by a subclass. - * - * @param aGroup Group to check for existence. - * - * @throws SQLException DOCUMENT ME! + * + * @param aGroup + * Group to check for existence. + * */ protected void checkGroupExists(String aGroup) throws SQLException { // Empty @@ -69,10 +62,10 @@ public class InMemoryGroupSetTest extends TestCase { /** * Additional check to be implemented by a subclass. - * - * @param aGroup Group to check for non-existence. - * - * @throws SQLException DOCUMENT ME! + * + * @param aGroup + * Group to check for non-existence. + * */ protected void checkGroupNotExists(String aGroup) throws SQLException { // Empty @@ -80,20 +73,19 @@ public class InMemoryGroupSetTest extends TestCase { /** * Additional check to be implemented by a subclass. - * - * @param aSize Expected number of groups. - * - * @throws SQLException DOCUMENT ME! + * + * @param aSize + * Expected number of groups. + * */ protected void checkGroupCount(int aSize) throws SQLException { assertEquals(aSize, groups.size()); } /** - * Adds a group and verifies that the group is added using find(), - * list(), and contains(). - * - * @throws SQLException DOCUMENT ME! + * Adds a group and verifies that the group is added using find(), list(), + * and contains(). + * */ public void testAdd() throws SQLException { Group group = new Group("group1"); @@ -111,10 +103,8 @@ public class InMemoryGroupSetTest extends TestCase { } /** - * Tries to find a non-existing group. Verifies that null is - * returned. - * - * @throws SQLException DOCUMENT ME! + * Tries to find a non-existing group. Verifies that null is returned. + * */ public void testFindUnknownGroup() throws SQLException { Group group1 = new Group("group1"); @@ -129,10 +119,8 @@ public class InMemoryGroupSetTest extends TestCase { } /** - * Adds duplicate group. Verifies that the existing group is left - * untouched. - * - * @throws SQLException DOCUMENT ME! + * Adds duplicate group. Verifies that the existing group is left untouched. + * */ public void testAddDuplicateGroup() throws SQLException { Group group1 = new Group("group1"); @@ -149,10 +137,9 @@ public class InMemoryGroupSetTest extends TestCase { } /** - * Removes a group. Verifies that the group is removed and the - * return value is true. - * - * @throws SQLException DOCUMENT ME! + * Removes a group. Verifies that the group is removed and the return value + * is true. + * */ public void testRemoveGroup() throws SQLException { Group group1 = new Group("group1"); @@ -168,10 +155,9 @@ public class InMemoryGroupSetTest extends TestCase { } /** - * Removes a non-existing group. Verifies that no groups are - * removed an that the return value is true. - * - * @throws SQLException DOCUMENT ME! + * Removes a non-existing group. Verifies that no groups are removed an that + * the return value is true. + * */ public void testRemoveNonExistingGroup() throws SQLException { Group group1 = new Group("group1"); @@ -188,10 +174,9 @@ public class InMemoryGroupSetTest extends TestCase { } /** - * Adds a number of groups to the set and verifies that list() - * returns them all. - * - * @throws SQLException DOCUMENT ME! + * Adds a number of groups to the set and verifies that list() returns them + * all. + * */ public void testList() throws SQLException { Group group1 = new Group("group1");