Save This Page
Home » cactus-1.8.0-src » org.apache.cactus » [javadoc | source]
org.apache.cactus
public class: TestServletURL [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.cactus.TestServletURL
Unit tests of the ServletURL class.
Method from org.apache.cactus.TestServletURL Summary:
testGetHostWithPort,   testGetPath,   testGetPathNull,   testGetPortInvalidPortNumber,   testSetContextPathEmptyString,   testSetContextPathFirstCharacterNotForwardSlash,   testSetContextPathLastCharacterNotForwardSlash,   testSetPathInfoEmptyNotAllowed,   testSetPathInfoFirstCharacterNotForwardSlash,   testSetProtocolInvalidProtocol,   testSetProtocolOk,   testSetServletPathEmptyString,   testSetServletPathFirstCharacterNotForwardSlash
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.TestServletURL Detail:
 public  void testGetHostWithPort() 
    Verify that the getHost() method is returning the correct host when a port is specified and that the getPort() method returns the specified port.
 public  void testGetPath() 
    Verify getPath() is ok when all parts are filled.
 public  void testGetPathNull() 
    Verify getPath() returns null when no parts are filled.
 public  void testGetPortInvalidPortNumber() 
    Verify that getPort() returns -1 when the port is invalid.
 public  void testSetContextPathEmptyString() 
    Verify that the context path can be an empty string.
 public  void testSetContextPathFirstCharacterNotForwardSlash() 
    Verify that if the context path is not empty or null it must start with a "/" character.
 public  void testSetContextPathLastCharacterNotForwardSlash() 
    Verify that if the context path is not empty or null it must not end with the "/" character.
 public  void testSetPathInfoEmptyNotAllowed() 
    Verify that the path info cannot be an empty string.
 public  void testSetPathInfoFirstCharacterNotForwardSlash() 
    Verify that if the path info is not null it must start with a "/" character.
 public  void testSetProtocolInvalidProtocol() 
    Verify that an invalid protocol raises an exception.
 public  void testSetProtocolOk() 
    Verify that a valid protocol works.
 public  void testSetServletPathEmptyString() 
    Verify that the servlet path can be an empty string.
 public  void testSetServletPathFirstCharacterNotForwardSlash() 
    Verify that if the servlet path is not empty or null it must start with a "/" character.