Clover coverage report - angkor - 0.4
Coverage timestamp: ti okt 15 2002 22:32:48 CEST
file stats: LOC: 50   Methods: 3
NCLOC: 31   Classes: 1
Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover.
 
 Source file Conditionals Statements Methods TOTAL
AbstractPipelineTest.java - 100% 100% 100%
 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  10
     protected void setUp() throws Exception
 30   
     {
 31  10
         super.setUp();
 32  10
         pipeline = new MockPipeline();
 33  10
         application = createApplication();
 34  10
         pipeline.setApplication(application);
 35  10
         context = pipeline.getRenderContext();
 36  10
         pipeline.start();
 37   
     }
 38   
 
 39  10
     protected void tearDown() throws Exception
 40   
     {
 41  10
         super.tearDown();
 42  10
         pipeline.end();
 43   
     }
 44   
 
 45  10
     protected Application createApplication()
 46   
     {
 47  10
         return new MockApplication();
 48   
     }
 49   
 }
 50