org.apache.commons.chain.web.servlet
Class ServletGetLocaleCommandTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.chain.web.servlet.ServletGetLocaleCommandTestCase
All Implemented Interfaces:
junit.framework.Test

public class ServletGetLocaleCommandTestCase
extends junit.framework.TestCase


Field Summary
protected  ServletGetLocaleCommand command
           
protected  Context context
           
protected  Locale locale
           
protected  HttpServletRequest request
           
protected  HttpServletResponse response
           
protected  ServletContext scontext
           
protected  HttpSession session
           
 
Constructor Summary
ServletGetLocaleCommandTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void check(Context context, ServletGetLocaleCommand command)
           
 void setUp()
          Set up instance variables required by this test case.
static junit.framework.Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testConfigured()
           
 void testDefaut()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

locale

protected Locale locale

scontext

protected ServletContext scontext

request

protected HttpServletRequest request

response

protected HttpServletResponse response

session

protected HttpSession session

context

protected Context context

command

protected ServletGetLocaleCommand command
Constructor Detail

ServletGetLocaleCommandTestCase

public ServletGetLocaleCommandTestCase(String name)
Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

setUp

public void setUp()
Set up instance variables required by this test case.

Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Return the tests included in this test suite.


tearDown

public void tearDown()
Tear down instance variables required by this test case.

Overrides:
tearDown in class junit.framework.TestCase

testConfigured

public void testConfigured()
                    throws Exception
Throws:
Exception

testDefaut

public void testDefaut()
                throws Exception
Throws:
Exception

check

protected void check(Context context,
                     ServletGetLocaleCommand command)
              throws Exception
Throws:
Exception


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.