org.eclipse.emf.test.xml.encoding
Class UnicodeEncodingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.emf.test.xml.encoding.UnicodeEncodingTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
UnicodeEncodingTest.ASCIIControlCharacterEncodingTest, UnicodeEncodingTest.ASCIIEncodingTest, UnicodeEncodingTest.ISO_8859_1EncodingTest, UnicodeEncodingTest.ISO_8859_5EncodingTest, UnicodeEncodingTest.UTF16BEEncodingTest, UnicodeEncodingTest.UTF16LEEncodingTest, UnicodeEncodingTest.UTF8EncodingTest

public class UnicodeEncodingTest
extends junit.framework.TestCase


Nested Class Summary
static class UnicodeEncodingTest.ASCIIControlCharacterEncodingTest
           
static class UnicodeEncodingTest.ASCIIEncodingTest
           
static class UnicodeEncodingTest.ISO_8859_1EncodingTest
           
static class UnicodeEncodingTest.ISO_8859_5EncodingTest
           
static class UnicodeEncodingTest.UTF16BEEncodingTest
           
static class UnicodeEncodingTest.UTF16LEEncodingTest
           
static class UnicodeEncodingTest.UTF8EncodingTest
           
 
Field Summary
 java.lang.String encodingName
           
static int MAX_CODE_POINT
           
static char MAX_HIGH_SURROGATE
           
static char MAX_LOW_SURROGATE
           
static int MIN_CODE_POINT
           
static char MIN_HIGH_SURROGATE
           
static char MIN_LOW_SURROGATE
           
static int MIN_SUPPLEMENTARY_CODE_POINT
           
 java.lang.String xmlVersion
           
 
Constructor Summary
UnicodeEncodingTest(java.lang.String name, java.lang.String encoding)
           
UnicodeEncodingTest(java.lang.String name, java.lang.String encoding, java.lang.String xmlVersion)
           
 
Method Summary
 void doEMFSaveAndLoad(java.lang.String testString)
           
 java.lang.String getName()
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testArabicLetter()
           
 void testCharactersIn8bit()
           
 void testControlCharacters()
           
 void testStraightASCII()
           
 void testSupplementaryContent()
           
static char[] toSurrogatePair(int codePoint)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

encodingName

public java.lang.String encodingName

xmlVersion

public java.lang.String xmlVersion

MIN_SUPPLEMENTARY_CODE_POINT

public static final int MIN_SUPPLEMENTARY_CODE_POINT
See Also:
Constant Field Values

MIN_CODE_POINT

public static final int MIN_CODE_POINT
See Also:
Constant Field Values

MAX_CODE_POINT

public static final int MAX_CODE_POINT
See Also:
Constant Field Values

MIN_HIGH_SURROGATE

public static final char MIN_HIGH_SURROGATE
See Also:
Constant Field Values

MAX_HIGH_SURROGATE

public static final char MAX_HIGH_SURROGATE
See Also:
Constant Field Values

MIN_LOW_SURROGATE

public static final char MIN_LOW_SURROGATE
See Also:
Constant Field Values

MAX_LOW_SURROGATE

public static final char MAX_LOW_SURROGATE
See Also:
Constant Field Values
Constructor Detail

UnicodeEncodingTest

public UnicodeEncodingTest(java.lang.String name,
                           java.lang.String encoding,
                           java.lang.String xmlVersion)

UnicodeEncodingTest

public UnicodeEncodingTest(java.lang.String name,
                           java.lang.String encoding)
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class junit.framework.TestCase

suite

public static junit.framework.Test suite()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

doEMFSaveAndLoad

public void doEMFSaveAndLoad(java.lang.String testString)
                      throws java.io.IOException
Throws:
java.io.IOException

toSurrogatePair

public static char[] toSurrogatePair(int codePoint)

testStraightASCII

public void testStraightASCII()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testCharactersIn8bit

public void testCharactersIn8bit()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testArabicLetter

public void testArabicLetter()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testSupplementaryContent

public void testSupplementaryContent()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testControlCharacters

public void testControlCharacters()
                           throws java.lang.Exception
Throws:
java.lang.Exception

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.