info.monitorenter.unicode.decoder.html
Class HtmlEntityDecoderReaderTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byinfo.monitorenter.unicode.decoder.html.HtmlEntityDecoderReaderTest
All Implemented Interfaces:
junit.framework.Test

public class HtmlEntityDecoderReaderTest
extends junit.framework.TestCase

Tests for HtmlEntityDecoderReader.

Version:
$Revision: 1.3 $
Author:
Achim Westermann

Constructor Summary
HtmlEntityDecoderReaderTest()
          Creates a test case named by this class.
HtmlEntityDecoderReaderTest(String arg0)
          Creates a test case with the given name.
 
Method Summary
 void testDecode()
          Tests Reader.read(char[]) functionality with a test file and different char[] sizes.
 void testDecodeBigFile1()
          Tests Reader.read(char[]) functionality with a big test html file.
 void testDecodeBigFile2()
          Tests Reader.read(char[]) functionality with a big test html file (NCR, named entities of latin-1).
 void testDecodeBigFile3()
          Tests Reader.read(char[]) functionality with a big test html file (NCR, named entities with mathematical, greek and symbolic characters).
 void testDecodeBigFile4()
          Tests Reader.read(char[]) functionality with a big test html file (NCR, named entities with special characters).
 void testDecodeNCR()
          Tests Reader.read(char[]) functionality with various different notations of NCRs as described in http://www.w3.org/TR/html4/charset.html#h-5.3.1.
 
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

HtmlEntityDecoderReaderTest

public HtmlEntityDecoderReaderTest()
Creates a test case named by this class.


HtmlEntityDecoderReaderTest

public HtmlEntityDecoderReaderTest(String arg0)
Creates a test case with the given name.

Parameters:
arg0 - the name of the test case.
Method Detail

testDecode

public void testDecode()
                throws IOException
Tests Reader.read(char[]) functionality with a test file and different char[] sizes.

Throws:
IOException - if sth. goes wrong.

testDecodeBigFile1

public void testDecodeBigFile1()
                        throws IOException
Tests Reader.read(char[]) functionality with a big test html file.

Throws:
IOException - if sth. goes wrong.

testDecodeBigFile2

public void testDecodeBigFile2()
                        throws IOException
Tests Reader.read(char[]) functionality with a big test html file (NCR, named entities of latin-1).

Throws:
IOException - if sth. goes wrong.

testDecodeBigFile3

public void testDecodeBigFile3()
                        throws IOException
Tests Reader.read(char[]) functionality with a big test html file (NCR, named entities with mathematical, greek and symbolic characters).

Throws:
IOException - if sth. goes wrong.

testDecodeBigFile4

public void testDecodeBigFile4()
                        throws IOException
Tests Reader.read(char[]) functionality with a big test html file (NCR, named entities with special characters).

Throws:
IOException - if sth. goes wrong.

testDecodeNCR

public void testDecodeNCR()
                   throws IOException
Tests Reader.read(char[]) functionality with various different notations of NCRs as described in http://www.w3.org/TR/html4/charset.html#h-5.3.1.

Throws:
IOException - if sth. goes wrong.


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.