Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

servletunit.tests
Class TestHttpServletResponseSimulator  view TestHttpServletResponseSimulator download TestHttpServletResponseSimulator.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byservletunit.tests.TestHttpServletResponseSimulator
All Implemented Interfaces:
junit.framework.Test

public class TestHttpServletResponseSimulator
extends junit.framework.TestCase

A Junit based test of the HttpServletResponseSimulator class

Version:
1.0

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestHttpServletResponseSimulator(java.lang.String testCase)
           
 
Method Summary
static junit.framework.Test suite()
           
 void testAddDateHeader()
           
 void testContentLength()
          tests that getContentLength() returns the value previously set by calling setContentLength() or setIntHeader() with a "Content-length" parameter
 void testContentType()
          tests that getContentType() returns the value previously set by calling setContentType() or setHeader() with a "Content-type" parameter
 void testEncodeRedirectUrl()
          Ensures the value returned by encodeRedirectUrl contains the original url.
 void testEncodeRedirectURL()
          Ensures the value returned by encodeRedirectURL contains the original url.
 void testEncodeUrl()
          Ensures the value returned by encodeUrl contains the original url.
 void testEncodeURL()
          Ensures the value returned by encodeURL contains the original url.
 void testSendRedirect()
          tests the send redirect method
 void testSetHeader()
          tests the setHeader() and containsHeader() methods
 void testSetIntHeader()
          tests the setIntHeader() and containsHeader() methods.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestHttpServletResponseSimulator

public TestHttpServletResponseSimulator(java.lang.String testCase)
Method Detail

testEncodeURL

public void testEncodeURL()
Ensures the value returned by encodeURL contains the original url.


testEncodeUrl

public void testEncodeUrl()
Ensures the value returned by encodeUrl contains the original url.


testEncodeRedirectURL

public void testEncodeRedirectURL()
Ensures the value returned by encodeRedirectURL contains the original url.


testEncodeRedirectUrl

public void testEncodeRedirectUrl()
Ensures the value returned by encodeRedirectUrl contains the original url.


testSetHeader

public void testSetHeader()
tests the setHeader() and containsHeader() methods


testSetIntHeader

public void testSetIntHeader()
tests the setIntHeader() and containsHeader() methods.


suite

public static junit.framework.Test suite()

testSendRedirect

public void testSendRedirect()
                      throws java.lang.Exception
tests the send redirect method


testContentType

public void testContentType()
tests that getContentType() returns the value previously set by calling setContentType() or setHeader() with a "Content-type" parameter


testContentLength

public void testContentLength()
tests that getContentLength() returns the value previously set by calling setContentLength() or setIntHeader() with a "Content-length" parameter


testAddDateHeader

public void testAddDateHeader()