com.ibm.icu.test.text
Class UCharacterTest

java.lang.Object
  |
  +--com.ibm.test.TestFmwk
        |
        +--com.ibm.icu.test.text.UCharacterTest
All Implemented Interfaces:
com.ibm.test.TestLog

public final class UCharacterTest
extends com.ibm.test.TestFmwk

Testing class for UCharacter Mostly following the test cases for ICU

Since:
nov 04 2000
Author:
Syn Wee Quek

Constructor Summary
UCharacterTest()
          Constructor
 
Method Summary
static void main(java.lang.String[] arg)
           
 void TestBase()
          Tests for base characters and their cellwidth
 void TestCaseMapping()
          Testing the strings case mapping methods
 void TestDefined()
          Tests for defined and undefined characters
 void TestDigits()
          Tests for digit characters
 void TestIdentifier()
          Testing for identifier characters
 void TestLetterNumber()
          Testing the letter and number determination in UCharacter
 void TestNames()
          Test for the character names
 void TestPrint()
          Tests for printable characters
 void TestSpaces()
          Tests for space determination in UCharacter
 void TestUnicodeData()
          Tests for the character types, direction.
This method reads in UnicodeData.txt file for testing purposes.
 void TestUpperLower()
          Testing the uppercase and lowercase function of UCharacter
 void TestVersion()
          Tests for version
 
Methods inherited from class com.ibm.test.TestFmwk
err, errln, getErrorCount, hex, hex, hex, isVerbose, log, logln, run, run, run, writeTestName, writeTestResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UCharacterTest

public UCharacterTest()
Constructor
Method Detail

TestUpperLower

public void TestUpperLower()
Testing the uppercase and lowercase function of UCharacter

TestLetterNumber

public void TestLetterNumber()
Testing the letter and number determination in UCharacter

TestSpaces

public void TestSpaces()
Tests for space determination in UCharacter

TestDefined

public void TestDefined()
Tests for defined and undefined characters

TestBase

public void TestBase()
Tests for base characters and their cellwidth

TestDigits

public void TestDigits()
Tests for digit characters

TestVersion

public void TestVersion()
Tests for version

TestPrint

public void TestPrint()
Tests for printable characters

TestIdentifier

public void TestIdentifier()
Testing for identifier characters

TestUnicodeData

public void TestUnicodeData()
Tests for the character types, direction.
This method reads in UnicodeData.txt file for testing purposes. A default path is provided relative to the class path, however if the user could set a system property to change the path.
e.g. java -DUnicodeData="anyfile.dat" com.ibm.test.text.UCharacterTest

TestNames

public void TestNames()
Test for the character names

TestCaseMapping

public void TestCaseMapping()
Testing the strings case mapping methods

main

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


Copyright (c) 1998-2000 IBM Corporation and others.