Parent Directory | Revision Log | Patch
--- cocoon/trunk/src/test/org/apache/cocoon/components/blocks/BlockManagerTestCase.java 2005/05/01 22:04:24 165552 +++ cocoon/trunk/src/test/org/apache/cocoon/components/blocks/BlockManagerTestCase.java 2005/05/01 22:07:06 165553 @@ -17,10 +17,19 @@ package org.apache.cocoon.components.blo import org.apache.avalon.framework.service.ServiceException; import org.apache.cocoon.SitemapTestCase; +import org.apache.cocoon.environment.mock.MockEnvironment; public class BlockManagerTestCase extends SitemapTestCase { - public void testConfigure() throws ServiceException { + public void testCreate() throws ServiceException { BlockManager block = (BlockManager)this.lookup(BlockManager.ROLE); this.release(block); } + + public void testPipeline() throws Exception { + BlockManager block = (BlockManager)this.lookup(BlockManager.ROLE); + MockEnvironment env = getEnvironment("test"); + block.process(env); + getLogger().info("Output: " + new String(env.getOutput(), "UTF-8")); + this.release(block); + } }
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |