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

Quick Search    Search Deep

org.apache.http.io
Class TestChunkCoding  view TestChunkCoding download TestChunkCoding.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.http.io.TestChunkCoding
All Implemented Interfaces:
junit.framework.Test

public class TestChunkCoding
extends junit.framework.TestCase


Field Summary
private static java.lang.String CHUNKED_INPUT
           
private static java.lang.String CHUNKED_RESULT
           
private static java.lang.String CONTENT_CHARSET
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestChunkCoding(java.lang.String testName)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testChunkedConsitance()
           
 void testChunkedInputStreamClose()
           
 void testChunkedInputStreamLargeBuffer()
           
 void testChunkedInputStreamOneByteRead()
           
 void testChunkedInputStreamSmallBuffer()
           
 void testChunkedOutputStream()
           
 void testChunkedOutputStreamClose()
           
 void testChunkedOutputStreamLargeChunk()
           
 void testChunkedOutputStreamSmallChunk()
           
 void testConstructors()
           
 void testCorruptChunkedInputStreamInvalidFooter()
           
 void testCorruptChunkedInputStreamInvalidSize()
           
 void testCorruptChunkedInputStreamMissingCRLF()
           
 void testCorruptChunkedInputStreamMissingLF()
           
 void testCorruptChunkedInputStreamNegativeSize()
           
 void testCorruptChunkedInputStreamNoClosingChunk()
           
 void testEmptyChunkedInputStream()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

CONTENT_CHARSET

private static final java.lang.String CONTENT_CHARSET
See Also:
Constant Field Values

CHUNKED_INPUT

private static final java.lang.String CHUNKED_INPUT
See Also:
Constant Field Values

CHUNKED_RESULT

private static final java.lang.String CHUNKED_RESULT
See Also:
Constant Field Values
Constructor Detail

TestChunkCoding

public TestChunkCoding(java.lang.String testName)
Method Detail

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)

testConstructors

public void testConstructors()
                      throws java.lang.Exception

testChunkedInputStreamLargeBuffer

public void testChunkedInputStreamLargeBuffer()
                                       throws java.io.IOException

testChunkedInputStreamSmallBuffer

public void testChunkedInputStreamSmallBuffer()
                                       throws java.io.IOException

testChunkedInputStreamOneByteRead

public void testChunkedInputStreamOneByteRead()
                                       throws java.io.IOException

testChunkedInputStreamClose

public void testChunkedInputStreamClose()
                                 throws java.io.IOException

testChunkedOutputStreamClose

public void testChunkedOutputStreamClose()
                                  throws java.io.IOException

testCorruptChunkedInputStreamMissingCRLF

public void testCorruptChunkedInputStreamMissingCRLF()
                                              throws java.io.IOException

testCorruptChunkedInputStreamMissingLF

public void testCorruptChunkedInputStreamMissingLF()
                                            throws java.io.IOException

testCorruptChunkedInputStreamNoClosingChunk

public void testCorruptChunkedInputStreamNoClosingChunk()
                                                 throws java.io.IOException

testCorruptChunkedInputStreamInvalidSize

public void testCorruptChunkedInputStreamInvalidSize()
                                              throws java.io.IOException

testCorruptChunkedInputStreamNegativeSize

public void testCorruptChunkedInputStreamNegativeSize()
                                               throws java.io.IOException

testCorruptChunkedInputStreamInvalidFooter

public void testCorruptChunkedInputStreamInvalidFooter()
                                                throws java.io.IOException

testEmptyChunkedInputStream

public void testEmptyChunkedInputStream()
                                 throws java.io.IOException

testChunkedConsitance

public void testChunkedConsitance()
                           throws java.io.IOException

testChunkedOutputStream

public void testChunkedOutputStream()
                             throws java.io.IOException

testChunkedOutputStreamLargeChunk

public void testChunkedOutputStreamLargeChunk()
                                       throws java.io.IOException

testChunkedOutputStreamSmallChunk

public void testChunkedOutputStreamSmallChunk()
                                       throws java.io.IOException