org.apache.commons.cactus
Class JspTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.apache.commons.cactus.AbstractTestCase
                    |
                    +--org.apache.commons.cactus.ServletTestCase
                          |
                          +--org.apache.commons.cactus.JspTestCase
All Implemented Interfaces:
junit.framework.Test

public class JspTestCase
extends ServletTestCase

Test classes that need access to valid JSP implicit objects (such as the page context, the output jsp writer, the HTTP request, ...) must subclass this class.

Version:
1.1

Field Summary
 javax.servlet.jsp.JspWriter out
          Valid JspWriter object that you can access from the testXXX(), setUp and tearDown() methods.
 javax.servlet.jsp.PageContext pageContext
          Valid PageContext object that you can access from the testXXX(), setUp and tearDown() methods.
 
Fields inherited from class org.apache.commons.cactus.ServletTestCase
config, request, response, session
 
Fields inherited from class org.apache.commons.cactus.AbstractTestCase
currentTestMethod
 
Constructor Summary
JspTestCase(java.lang.String theName)
          Constructs a JUnit test case with the given name.
 
Methods inherited from class org.apache.commons.cactus.AbstractTestCase
runBare, runBareServerTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, name, run, run, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pageContext

public javax.servlet.jsp.PageContext pageContext
Valid PageContext object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value.

out

public javax.servlet.jsp.JspWriter out
Valid JspWriter object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value.
Constructor Detail

JspTestCase

public JspTestCase(java.lang.String theName)
Constructs a JUnit test case with the given name.
Parameters:
theName - the name of the test case


Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.