net.groboclown.util.http.v1.tests
Class TestRfc2109CookieParser

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.groboclown.junit.v1.MultiThreadedTestCase
                    |
                    +--net.groboclown.util.http.v1.tests.BaseTestHttp
                          |
                          +--net.groboclown.util.http.v1.tests.TestRfc2109CookieParser
All Implemented Interfaces:
junit.framework.Test

public class TestRfc2109CookieParser
extends BaseTestHttp


Inner classes inherited from class net.groboclown.util.http.v1.tests.BaseTestHttp
BaseTestHttp.ConnectionRunner
 
Inner classes inherited from class net.groboclown.junit.v1.MultiThreadedTestCase
MultiThreadedTestCase.StopThreadsTest, MultiThreadedTestCase.TestCaseRunnable
 
Field Summary
private static String COOKIE_HEADER_1
           
private static String COOKIE_HEADER_2
           
private static Class THIS_CLASS
           
 
Fields inherited from class net.groboclown.util.http.v1.tests.BaseTestHttp
TEST_PAGE_1, TEST_PAGE_1_CONTENTS, TEST_SITE
 
Fields inherited from class net.groboclown.junit.v1.MultiThreadedTestCase
m_synch, m_testResult, m_threadGroup, m_threadsFinished
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
TestRfc2109CookieParser(String name)
           
 
Method Summary
protected  void assertEmpty(String message, Object[] list)
           
protected  void assertLength(String message, int length, Object[] list)
          The given list must be both non-null and have a length matching the given length, and that each entry in the list is non-null.
private  void inner_testSimpleCookie_1(IHttpClientState cookie)
           
private  void inner_testSimpleCookie_2(IHttpClientState cookie)
           
static void main(String[] args)
           
protected  void netscapeInner_testSimpleCookie_1(IHttpClientState cookie)
           
protected  void netscapeInner_testSimpleCookie_2(IHttpClientState cookie)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testEmpty()
           
 void testInstantiate()
           
 void testMultipleCookies()
           
 void testNetscapeCompatible()
           
 void testNull()
           
 void testSingleCookie()
           
 void testUnusualCookie_NoVal()
           
 void testUnusualCookie_Quote()
           
 void testUnusualCookie_QuoteAndSemi()
           
 
Methods inherited from class net.groboclown.util.http.v1.tests.BaseTestHttp
assertMessageCompareEquals, openThreadedConnection, openThreadedConnection, openThreadedConnectionByte, trim
 
Methods inherited from class net.groboclown.junit.v1.MultiThreadedTestCase
handleException, interruptThreads, run, runTestCaseRunnables, runTestCaseRunnables
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

THIS_CLASS

private static final Class THIS_CLASS

COOKIE_HEADER_1

private static final String COOKIE_HEADER_1

COOKIE_HEADER_2

private static final String COOKIE_HEADER_2
Constructor Detail

TestRfc2109CookieParser

public TestRfc2109CookieParser(String name)
Method Detail

suite

public static junit.framework.Test suite()

main

public static void main(String[] args)

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class BaseTestHttp

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class BaseTestHttp

testInstantiate

public void testInstantiate()
                     throws IOException

testNull

public void testNull()

testEmpty

public void testEmpty()

netscapeInner_testSimpleCookie_1

protected void netscapeInner_testSimpleCookie_1(IHttpClientState cookie)

netscapeInner_testSimpleCookie_2

protected void netscapeInner_testSimpleCookie_2(IHttpClientState cookie)

testNetscapeCompatible

public void testNetscapeCompatible()

inner_testSimpleCookie_1

private void inner_testSimpleCookie_1(IHttpClientState cookie)

inner_testSimpleCookie_2

private void inner_testSimpleCookie_2(IHttpClientState cookie)

testSingleCookie

public void testSingleCookie()

testMultipleCookies

public void testMultipleCookies()

testUnusualCookie_Quote

public void testUnusualCookie_Quote()

testUnusualCookie_QuoteAndSemi

public void testUnusualCookie_QuoteAndSemi()

testUnusualCookie_NoVal

public void testUnusualCookie_NoVal()

assertLength

protected void assertLength(String message,
                            int length,
                            Object[] list)
The given list must be both non-null and have a length matching the given length, and that each entry in the list is non-null.

assertEmpty

protected void assertEmpty(String message,
                           Object[] list)


Written under the LGPL