Clover coverage report - Cactus 1.4 for J2EE API 13
Coverage timestamp: Sun Aug 25 2002 18:02:10 BST
file stats: LOC: 72   Methods: 2
NCLOC: 17   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ServletTestCase.java - 100% 100% 100%
 1   
 /*   Generated by AspectJ version 1.0.5 */
 2   
 package org.apache.cactus;
 3   
 import javax.servlet.http.HttpServletResponse;
 4   
 import javax.servlet.http.HttpSession;
 5   
 import org.apache.cactus.client.ServletHttpClient;
 6   
 import org.apache.cactus.server.ServletConfigWrapper;
 7   
 
 8   
 /** 
 9   
  * Test classes that need access to valid Servlet implicit objects (such as the 
 10   
  * the HTTP request, the HTTP response, the servlet config, ...) must subclass 
 11   
  * this class. 
 12   
  * 
 13   
  * @author <a href="mailto:vmassol@apache.org">Vincent Massol</a> 
 14   
  * 
 15   
  * @version $Id: ServletTestCase.java,v 1.2 2002/04/28 20:19:17 vmassol Exp $ 
 16   
  */
 17   
 public class ServletTestCase extends AbstractWebTestCase {
 18   
   /** 
 19   
        * Valid <code>HttpServletRequest</code> object that you can access from 
 20   
        * the <code>testXXX()</code>, <code>setUp</code> and 
 21   
        * <code>tearDown()</code> methods. If you try to access it from either the 
 22   
        * <code>beginXXX()</code> or <code>endXXX()</code> methods it will 
 23   
        * have the <code>null</code> value. 
 24   
        */
 25   
   public org.apache.cactus.server.HttpServletRequestWrapper request;
 26   
   /** 
 27   
        * Valid <code>HttpServletResponse</code> object that you can access from 
 28   
        * the <code>testXXX()</code>, <code>setUp</code> and 
 29   
        * <code>tearDown()</code> methods. If you try to access it from either the 
 30   
        * <code>beginXXX()</code> or <code>endXXX()</code> methods it will 
 31   
        * have the <code>null</code> value. 
 32   
        */
 33   
   public HttpServletResponse response;
 34   
   /** 
 35   
        * Valid <code>HttpSession</code> object that you can access from 
 36   
        * the <code>testXXX()</code>, <code>setUp</code> and 
 37   
        * <code>tearDown()</code> methods. If you try to access it from either the 
 38   
        * <code>beginXXX()</code> or <code>endXXX()</code> methods it will 
 39   
        * have the <code>null</code> value. 
 40   
        */
 41   
   public HttpSession session;
 42   
   /** 
 43   
        * Valid <code>ServletConfig</code> object that you can access from 
 44   
        * the <code>testXXX()</code>, <code>setUp</code> and 
 45   
        * <code>tearDown()</code> methods. If you try to access it from either the 
 46   
        * <code>beginXXX()</code> or <code>endXXX()</code> methods it will 
 47   
        * have the <code>null</code> value. 
 48   
        */
 49   
   public ServletConfigWrapper config;
 50   
   /** 
 51   
        * Constructs a JUnit test case with the given name. 
 52   
        * 
 53   
        * @param theName the name of the test case 
 54   
        */
 55  59
   public ServletTestCase(String theName) {
 56  59
     super(theName);
 57   
     ;
 58   
   } 
 59   
   /** 
 60   
        * Runs a test case. This method is overriden from the JUnit 
 61   
        * <code>TestCase</code> class in order to seamlessly call the 
 62   
        * Cactus redirection servlet. 
 63   
        * 
 64   
        * @exception Throwable if an error happens during the test case 
 65   
        *            execution. All errors are thrown to the JUnit Test 
 66   
        *            Runner which will report them 
 67   
        */
 68  53
   protected void runTest() throws Throwable {
 69  53
     this.runGenericTest(new ServletHttpClient());
 70   
   } 
 71   
 
 72   
 }