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

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

public class TestCookie
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[] BAD_NAMES
           
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
TestCookie(String name)
           
 
Method Summary
protected  void assertReceiveSecure(Cookie c, String url, boolean isOk)
           
protected  void assertSendSecure(Cookie c, String urlS, boolean isOk)
           
protected  void badInstantiate(String name)
           
static void main(String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testDefaultToString()
           
 void testExpires()
           
 void testGetSet()
           
 void testInstantiate()
           
 void testReceiveSecurityCheck()
           
 void testSendSecurityCheck()
           
 void testToStringClientV0()
           
 void testToStringClientV1()
           
 void testToStringServerV0()
           
 void testToStringServerV1()
           
 
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

BAD_NAMES

private static final String[] BAD_NAMES
Constructor Detail

TestCookie

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

testGetSet

public void testGetSet()

testExpires

public void testExpires()
                 throws InterruptedException

testDefaultToString

public void testDefaultToString()

testToStringClientV0

public void testToStringClientV0()

testToStringClientV1

public void testToStringClientV1()

testToStringServerV0

public void testToStringServerV0()

testToStringServerV1

public void testToStringServerV1()

testSendSecurityCheck

public void testSendSecurityCheck()
                           throws Exception

testReceiveSecurityCheck

public void testReceiveSecurityCheck()
                              throws Exception

badInstantiate

protected void badInstantiate(String name)

assertSendSecure

protected void assertSendSecure(Cookie c,
                                String urlS,
                                boolean isOk)
                         throws IOException

assertReceiveSecure

protected void assertReceiveSecure(Cookie c,
                                   String url,
                                   boolean isOk)
                            throws IOException


Written under the LGPL