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() });
}
/**
* 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() }));
}
/**
}
/**
- * 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 {