Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.sample.servlet.unit » [javadoc | source]
org.apache.cactus.sample.servlet.unit
public class: TestSetURLSpecific [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.cactus.internal.AbstractCactusTestCase
         org.apache.cactus.ServletTestCase
            org.apache.cactus.sample.servlet.unit.TestSetURLSpecific

All Implemented Interfaces:
    CactusTestCase

Test the J2EE 1.3 specifics of the WebRequest#setURL method (specifically verify calls to getRequestURL).
Fields inherited from org.apache.cactus.ServletTestCase:
request,  response,  session,  config
Method from org.apache.cactus.sample.servlet.unit.TestSetURLSpecific Summary:
beginSimulatedURLGetRequestURLWhenNotNull,   beginSimulatedURLGetRequestURLWhenNull,   testSimulatedURLGetRequestURLWhenNotNull,   testSimulatedURLGetRequestURLWhenNull
Methods from org.apache.cactus.ServletTestCase:
createProtocolHandler
Methods from org.apache.cactus.internal.AbstractCactusTestCase:
createProtocolHandler,   runBare,   runBareServer
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.sample.servlet.unit.TestSetURLSpecific Detail:
 public  void beginSimulatedURLGetRequestURLWhenNotNull(WebRequest theRequest) 
    Verify that when setURL() is called with a not null pathinfo parameter, the call to getRequestURL works properly.
 public  void beginSimulatedURLGetRequestURLWhenNull(WebRequest theRequest) 
    Verify that when setURL() is called with a null pathinfo parameter, the call to getRequestURL works properly.
 public  void testSimulatedURLGetRequestURLWhenNotNull() 
    Verify that when setURL() is called with a not null pathinfo parameter, the call to getRequestURL works properly.
 public  void testSimulatedURLGetRequestURLWhenNull() 
    Verify that when setURL() is called with a null pathinfo parameter, the call to getRequestURL works properly.