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

Quick Search    Search Deep

servletunit.tests
Class TestHttpServletRequestSimulator  view TestHttpServletRequestSimulator download TestHttpServletRequestSimulator.java

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

public class TestHttpServletRequestSimulator
extends junit.framework.TestCase

A Junit based test of the HttpServletResponseSimulator class

Version:
1.0

Field Summary
(package private)  servletunit.ServletContextSimulator context
           
(package private)  servletunit.HttpServletRequestSimulator request
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestHttpServletRequestSimulator(java.lang.String testCase)
           
 
Method Summary
 void setUp()
          Sets up the fixture, for example, open a network connection.
 void testAddParameterArray()
           
 void testGetDateHeader()
           
 void testGetDateHeaderBadHeader()
           
 void testGetDateHeaderNoHeader()
           
 void testGetLocales()
           
 void testGetParameterValuesSingle()
           
 void testGetParameterValuesWithNullKey()
           
 void testGetParameterWithArray()
           
 void testGetParameterWithNullKey()
           
 void testGetRealPath()
           
 void testGetRealPathNotSet()
           
 void testGetRequestURLWithoutQueryStringOrPort()
           
 void testGetRequestURLWithQueryString()
           
 void testGetSecurePort()
           
 void testGetServerPort()
           
 void testIsUserInRole()
           
 void testIsUserInRoleFalse()
           
 void testReturnsRequestDispatcher()
           
 void testSetAttribute()
           
 void testSetAttributeNullValue()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

request

servletunit.HttpServletRequestSimulator request

context

servletunit.ServletContextSimulator context
Constructor Detail

TestHttpServletRequestSimulator

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

setUp

public void setUp()
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


testAddParameterArray

public void testAddParameterArray()

testGetParameterValuesSingle

public void testGetParameterValuesSingle()

testGetParameterWithNullKey

public void testGetParameterWithNullKey()

testGetParameterValuesWithNullKey

public void testGetParameterValuesWithNullKey()

testGetParameterWithArray

public void testGetParameterWithArray()

testSetAttributeNullValue

public void testSetAttributeNullValue()

testSetAttribute

public void testSetAttribute()

testIsUserInRole

public void testIsUserInRole()

testIsUserInRoleFalse

public void testIsUserInRoleFalse()

testGetServerPort

public void testGetServerPort()

testGetRequestURLWithQueryString

public void testGetRequestURLWithQueryString()

testGetRequestURLWithoutQueryStringOrPort

public void testGetRequestURLWithoutQueryStringOrPort()

testGetSecurePort

public void testGetSecurePort()

testGetLocales

public void testGetLocales()

testGetDateHeaderNoHeader

public void testGetDateHeaderNoHeader()

testGetDateHeaderBadHeader

public void testGetDateHeaderBadHeader()

testGetDateHeader

public void testGetDateHeader()
                       throws java.text.ParseException

testGetRealPath

public void testGetRealPath()

testGetRealPathNotSet

public void testGetRealPathNotSet()

testReturnsRequestDispatcher

public void testReturnsRequestDispatcher()