X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsecurity%2Fauthorization%2FDefaultOperationRegistryTest.java;h=30c171054fbcff637d6393daef42a1aee1bd01a0;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=d33b65d79af26f3fe00b22d8de3f92d99c5af25e;hpb=89c06d4d52b46c154128c97d6e758fa1f4fc7a6e;p=utils diff --git a/security/src/test/java/org/wamblee/security/authorization/DefaultOperationRegistryTest.java b/security/src/test/java/org/wamblee/security/authorization/DefaultOperationRegistryTest.java index d33b65d7..30c17105 100644 --- a/security/src/test/java/org/wamblee/security/authorization/DefaultOperationRegistryTest.java +++ b/security/src/test/java/org/wamblee/security/authorization/DefaultOperationRegistryTest.java @@ -17,33 +17,24 @@ package org.wamblee.security.authorization; import junit.framework.TestCase; - /** * Test of the operation registry. - * + * * @author Erik Brakkee */ public class DefaultOperationRegistryTest extends TestCase { - /** - * DOCUMENT ME! - */ private OperationRegistry registry; - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see junit.framework.TestCase#setUp() */ - /** - * DOCUMENT ME! - * - * @throws Exception DOCUMENT ME! - */ @Override protected void setUp() throws Exception { registry = new DefaultOperationRegistry(new Operation[] { - new AllOperation(), new ReadOperation(), - new WriteOperation(), new DeleteOperation(), - new CreateOperation() - }); + new AllOperation(), new ReadOperation(), new WriteOperation(), + new DeleteOperation(), new CreateOperation() }); } /** @@ -58,9 +49,8 @@ public class DefaultOperationRegistryTest extends TestCase { * Verifies that encoding of operations into a string works. */ public void testEncode() { - assertEquals("read,write", - registry.encode( - new Operation[] { new ReadOperation(), new WriteOperation() })); + assertEquals("read,write", registry.encode(new Operation[] { + new ReadOperation(), new WriteOperation() })); } /** @@ -73,8 +63,8 @@ public class DefaultOperationRegistryTest extends TestCase { } /** - * Verifies that an IllegalArgumentException occurs when attempting - * to decode an operation that is not known. + * Verifies that an IllegalArgumentException occurs when attempting to + * decode an operation that is not known. */ public void testDecodeUnknownOperation() { try {