org.apache.velocity.io
Class UnicodeInputStreamTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
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$
| 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 |
UnicodeInputStreamTestCase
public UnicodeInputStreamTestCase(String name)
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-2010 The Apache Software Foundation. All Rights Reserved.