View Javadoc
1 /* 2 * Distributable under LGPL license. 3 * See terms of license at gnu.org. 4 * 5 * (c) Copyright 2002 Jon Tirsén. 6 */ 7 package com.tirsen.angkor.test.unit; 8 9 import org.apache.commons.logging.Log; 10 import org.apache.commons.logging.LogFactory; 11 import junit.framework.TestCase; 12 import com.tirsen.angkor.Application; 13 import com.tirsen.angkor.test.unit.mock.MockRenderContext; 14 15 /*** 16 * Sets up a pipeline and starts it before test, stops it after. 17 * 18 * User: Jon Tirsén 19 * Date: 2002-okt-05 20 * Time: 19:57:16 21 */ 22 public class AbstractPipelineTest extends TestCase 23 { 24 private static final Log logger = LogFactory.getLog(AbstractPipelineTest.class); 25 protected Application application; 26 protected MockRenderContext context; 27 protected MockPipeline pipeline; 28 29 protected void setUp() throws Exception 30 { 31 super.setUp(); 32 pipeline = new MockPipeline(); 33 application = createApplication(); 34 pipeline.setApplication(application); 35 context = pipeline.getRenderContext(); 36 pipeline.start(); 37 } 38 39 protected void tearDown() throws Exception 40 { 41 super.tearDown(); 42 pipeline.end(); 43 } 44 45 protected Application createApplication() 46 { 47 return new MockApplication(); 48 } 49 }

This page was automatically generated by Maven