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

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.TestNetscapeCookieParser
All Implemented Interfaces:
junit.framework.Test

public class TestNetscapeCookieParser
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
protected static String COOKIE_HEADER_1
           
protected 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
TestNetscapeCookieParser(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.
protected  void inner_testSimpleCookie_1(IHttpClientState cookie)
           
protected  void inner_testSimpleCookie_2(IHttpClientState cookie)
           
static void main(String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testEmpty()
           
 void testExpiresCookie()
           
 void testInstantiate()
           
 void testMultipleCookies()
           
 void testNull()
           
 void testSingleCookie()
           
 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

protected static final String COOKIE_HEADER_1

COOKIE_HEADER_2

protected static final String COOKIE_HEADER_2
Constructor Detail

TestNetscapeCookieParser

public TestNetscapeCookieParser(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()

inner_testSimpleCookie_1

protected void inner_testSimpleCookie_1(IHttpClientState cookie)

inner_testSimpleCookie_2

protected 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()

testExpiresCookie

public void testExpiresCookie()

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