servletunit.tests
Class TestHttpServletResponseSimulator

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
servletunit.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
| Fields inherited from class junit.framework.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 |
TestHttpServletResponseSimulator
public TestHttpServletResponseSimulator(java.lang.String testCase)
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()