git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
security
/
impl
/
src
/
test
/
java
/
org
/
wamblee
/
usermgt
/
InMemoryGroupSetTest.java
diff --git
a/security/impl/src/test/java/org/wamblee/usermgt/InMemoryGroupSetTest.java
b/security/impl/src/test/java/org/wamblee/usermgt/InMemoryGroupSetTest.java
index a97adcca2bc41b86ba717b28d8bf1f8ca64313ea..9a65a1430f2a8f7f9481109c3afe6f9b62b55c3c 100644
(file)
--- a/
security/impl/src/test/java/org/wamblee/usermgt/InMemoryGroupSetTest.java
+++ b/
security/impl/src/test/java/org/wamblee/usermgt/InMemoryGroupSetTest.java
@@
-56,7
+56,7
@@
public class InMemoryGroupSetTest extends TestCase {
* Group to check for existence.
*
*/
* Group to check for existence.
*
*/
- protected void checkGroupExists(String aGroup) throws
SQL
Exception {
+ protected void checkGroupExists(String aGroup) throws Exception {
// Empty
}
// Empty
}
@@
-67,7
+67,7
@@
public class InMemoryGroupSetTest extends TestCase {
* Group to check for non-existence.
*
*/
* Group to check for non-existence.
*
*/
- protected void checkGroupNotExists(String aGroup) throws
SQL
Exception {
+ protected void checkGroupNotExists(String aGroup) throws Exception {
// Empty
}
// Empty
}
@@
-78,7
+78,7
@@
public class InMemoryGroupSetTest extends TestCase {
* Expected number of groups.
*
*/
* Expected number of groups.
*
*/
- protected void checkGroupCount(int aSize) throws
SQL
Exception {
+ protected void checkGroupCount(int aSize) throws Exception {
assertEquals(aSize, groups.size());
}
assertEquals(aSize, groups.size());
}
@@
-87,7
+87,7
@@
public class InMemoryGroupSetTest extends TestCase {
* and contains().
*
*/
* and contains().
*
*/
- public void testAdd() throws
SQL
Exception {
+ public void testAdd() throws Exception {
Group group = new Group("group1");
assertTrue(groups.add(group));
checkGroupExists(group.getName());
Group group = new Group("group1");
assertTrue(groups.add(group));
checkGroupExists(group.getName());
@@
-106,7
+106,7
@@
public class InMemoryGroupSetTest extends TestCase {
* Tries to find a non-existing group. Verifies that null is returned.
*
*/
* Tries to find a non-existing group. Verifies that null is returned.
*
*/
- public void testFindUnknownGroup() throws
SQL
Exception {
+ public void testFindUnknownGroup() throws Exception {
Group group1 = new Group("group1");
Group group2 = new Group("group2");
groups.add(group1);
Group group1 = new Group("group1");
Group group2 = new Group("group2");
groups.add(group1);
@@
-122,7
+122,7
@@
public class InMemoryGroupSetTest extends TestCase {
* Adds duplicate group. Verifies that the existing group is left untouched.
*
*/
* Adds duplicate group. Verifies that the existing group is left untouched.
*
*/
- public void testAddDuplicateGroup() throws
SQL
Exception {
+ public void testAddDuplicateGroup() throws Exception {
Group group1 = new Group("group1");
groups.add(group1);
Group group1 = new Group("group1");
groups.add(group1);
@@
-141,7
+141,7
@@
public class InMemoryGroupSetTest extends TestCase {
* is true.
*
*/
* is true.
*
*/
- public void testRemoveGroup() throws
SQL
Exception {
+ public void testRemoveGroup() throws Exception {
Group group1 = new Group("group1");
groups.add(group1);
assertTrue(groups.contains(group1));
Group group1 = new Group("group1");
groups.add(group1);
assertTrue(groups.contains(group1));
@@
-159,14
+159,12
@@
public class InMemoryGroupSetTest extends TestCase {
* the return value is true.
*
*/
* the return value is true.
*
*/
- public void testRemoveNonExistingGroup() throws
SQL
Exception {
+ public void testRemoveNonExistingGroup() throws Exception {
Group group1 = new Group("group1");
groups.add(group1);
checkGroupCount(1);
Group nonExistingGroup = new Group("group2");
Group group1 = new Group("group1");
groups.add(group1);
checkGroupCount(1);
Group nonExistingGroup = new Group("group2");
- nonExistingGroup.setPrimaryKey(new Long(1000));
- nonExistingGroup.setPersistedVersion(1000);
assertFalse(groups.remove(nonExistingGroup));
assertTrue(groups.contains(group1));
assertEquals(1, groups.list().size());
assertFalse(groups.remove(nonExistingGroup));
assertTrue(groups.contains(group1));
assertEquals(1, groups.list().size());
@@
-178,7
+176,7
@@
public class InMemoryGroupSetTest extends TestCase {
* all.
*
*/
* all.
*
*/
- public void testList() throws
SQL
Exception {
+ public void testList() throws Exception {
Group group1 = new Group("group1");
Group group2 = new Group("group2");
Group group3 = new Group("group3");
Group group1 = new Group("group1");
Group group2 = new Group("group2");
Group group3 = new Group("group3");