org.apache.velocity.io
Class UnicodeInputStreamTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.velocity.io.UnicodeInputStreamTestCase
All Implemented Interfaces:
junit.framework.Test

public class UnicodeInputStreamTestCase
extends junit.framework.TestCase

Test the UnicodeInputStream.

Version:
$Revision: 501574 $, $Date: 2007-01-30 13:32:26 -0800 (Tue, 30 Jan 2007) $
Author:
$author$

Constructor Summary
UnicodeInputStreamTestCase(String name)
           
 
Method Summary
protected  byte[] buildTestString(org.apache.velocity.io.UnicodeInputStream.UnicodeBOM bom, String str, String enc, boolean skipBOM)
           
protected  InputStream createInputStream(org.apache.velocity.io.UnicodeInputStream.UnicodeBOM bom, String str, String enc)
           
protected  byte[] readAllBytes(InputStream inputStream, String enc)
           
static junit.framework.Test suite()
           
 void testRealUTF16BEWithBOM()
           
 void testRealUTF16LEWithBOM()
           
 void testRealUTF32BEWithBOM()
           
 void testRealUTF32LEWithBOM()
           
 void testRealUTF8()
           
 void testRealUTF8WithBOM()
           
protected  void testRun(org.apache.velocity.io.UnicodeInputStream.UnicodeBOM bom, String str, String testEncoding, boolean skipBOM)
           
 void testSimpleStream()
           
 void testSimpleUTF8()
           
 
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
 

Constructor Detail

UnicodeInputStreamTestCase

public UnicodeInputStreamTestCase(String name)
Method Detail

suite

public static junit.framework.Test suite()

testSimpleStream

public void testSimpleStream()
                      throws Exception
Throws:
Exception

testSimpleUTF8

public void testSimpleUTF8()
                    throws Exception
Throws:
Exception

testRealUTF8

public void testRealUTF8()
                  throws Exception
Throws:
Exception

testRealUTF8WithBOM

public void testRealUTF8WithBOM()
                         throws Exception
Throws:
Exception

testRealUTF16BEWithBOM

public void testRealUTF16BEWithBOM()
                            throws Exception
Throws:
Exception

testRealUTF16LEWithBOM

public void testRealUTF16LEWithBOM()
                            throws Exception
Throws:
Exception

testRealUTF32BEWithBOM

public void testRealUTF32BEWithBOM()
                            throws Exception
Throws:
Exception

testRealUTF32LEWithBOM

public void testRealUTF32LEWithBOM()
                            throws Exception
Throws:
Exception

testRun

protected void testRun(org.apache.velocity.io.UnicodeInputStream.UnicodeBOM bom,
                       String str,
                       String testEncoding,
                       boolean skipBOM)
                throws Exception
Throws:
Exception

createInputStream

protected InputStream createInputStream(org.apache.velocity.io.UnicodeInputStream.UnicodeBOM bom,
                                        String str,
                                        String enc)
                                 throws Exception
Throws:
Exception

buildTestString

protected byte[] buildTestString(org.apache.velocity.io.UnicodeInputStream.UnicodeBOM bom,
                                 String str,
                                 String enc,
                                 boolean skipBOM)
                          throws Exception
Throws:
Exception

readAllBytes

protected byte[] readAllBytes(InputStream inputStream,
                              String enc)
                       throws Exception
Throws:
Exception


Copyright © 2000-2008 The Apache Software Foundation. All Rights Reserved.