Java Doc for TransliteratorTest.java in  » Internationalization-Localization » icu4j » com » ibm » icu » dev » test » translit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Internationalization Localization » icu4j » com.ibm.icu.dev.test.translit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.icu.dev.test.AbstractTestLog
      com.ibm.icu.dev.test.TestFmwk
         com.ibm.icu.dev.test.translit.TransliteratorTest

All known Subclasses:   com.ibm.icu.dev.test.translit.JamoTest,
TransliteratorTest
public class TransliteratorTest extends TestFmwk (Code)

Inner Class :static class TestFact implements Transliterator.Factory
Inner Class :static class DummyFactory implements Transliterator.Factory
Inner Class :static class TestUserFunctionFactory implements Transliterator.Factory

Field Summary
final static  StringDESERET_DEE
    
final static  StringDESERET_dee
    
final static  String[][]registerRules
    
final static  String[][]testCases
    


Method Summary
final static  StringCharsToUnicodeString(String s)
    
public  voidCheckIncrementalAux(Transliterator t, String input)
    
public  voidTestAliasInverseID()
     Check ID of inverse of alias.
public  voidTestAlternateSyntax()
    
public  voidTestAnchorMasking()
    
public  voidTestAnchors()
    
public  voidTestAny()
    
public  voidTestAnyX()
     Test the Any-X transliterators.
public  voidTestArbitraryVariableValues()
     Test zero length and > 1 char length variable values.
public  voidTestBeginEnd()
    
public  voidTestBeginEndToRules()
    
public  voidTestCaseMap()
     Test the case mapping transliterators.
public  voidTestCompoundFilter()
     Compound filter semantics were orginially not implemented correctly.
public  voidTestCompoundFilterID()
    
public  voidTestCompoundHex()
     Compose the hex transliterators forward and reverse.
public  voidTestCompoundInverse()
    
public  voidTestCompoundInverseID()
     Test IDs of inverses of compound transliterators.
public  voidTestCompoundKana()
     Compose the Kana transliterator forward and reverse and try some strings that should come out unchanged.
public  voidTestCompoundLatinRT()
    
public  voidTestCompoundRBT()
     Test compound RBT rules.
public  voidTestContext()
    
public  voidTestCopyJ476()
    
public  voidTestCoverage()
     Improve code coverage.
public  voidTestCreateInstance()
    
public  voidTestCursorOffset()
    
public  voidTestDevanagariLatinRT()
    
public  voidTestDisplayName()
     Make sure display names of variants look reasonable.
public  voidTestEmptyContext()
     Test empty context.
public  voidTestEscape()
     Test Escape and Unescape transliterators.
public  voidTestFilterIDs()
     Test filter syntax in IDs.
public  voidTestFiltering()
     Do some basic tests of filtering.
public  voidTestFunction()
    
public  voidTestGurmukhiDevanagari()
    
public  voidTestHiraganaKatakana()
     Test the Hiragana-Katakana transliterator.
public  voidTestIDForms()
    
public  voidTestIncrementalProgress()
    
public  voidTestInlineSet()
     Test inline set syntax and set variable syntax.
public  voidTestInstantiation()
    
public  voidTestInterIndic()
     Test inter-Indic transliterators.
public  voidTestInvalidBackRef()
    
public  voidTestInvalidPostContext()
    
public  voidTestJ277()
     Regression test for bugs found in Greek transliteration.
public  voidTestJ329()
    
public  voidTestKeyboard()
     Basic test of keyboard.
public  voidTestKeyboard2()
     Basic test of keyboard with cursor.
public  voidTestKeyboard3()
     Test keyboard transliteration with back-replacement.
public  voidTestLiberalizedID()
     Test liberalized ID syntax.
public  voidTestLocaleInstantiation()
     Test instantiation from a locale.
public  voidTestLocaleResource()
     Basic test of a locale resource based rule.
public  voidTestMulticharStringSet()
    
public  voidTestNFDChainRBT()
    
public  voidTestNameMap()
     Test the name mapping transliterators.
public  voidTestNewEngine()
     Test various failure points of the new 2.0 engine.
public  voidTestNormalizationTransliterator()
     Test the normalization transliterator.
public  voidTestNullInverse()
     Inverse of "Null" should be "Null".
public  voidTestOutputSet()
     Make sure sets on output are disallowed.
public  voidTestParseError()
     Make sure parse errors reference the right line.
public  voidTestPatternQuoting()
     Test pattern quoting and escape mechanisms.
public  voidTestPositionAPI()
    
public  voidTestPositionHandling()
     Confirm that the contextStart, contextLimit, start, and limit behave correctly.
public  voidTestPropertySet()
    
public  voidTestQuantifiedSegment()
     Test quantified segment behavior.
public  voidTestQuantifier()
    
public  voidTestRegisterAlias()
    
public  voidTestRemove()
     Test the "Remove" transliterator.
public  voidTestRuleBasedInverse()
     Create some inverses and confirm that they work.
public  voidTestRuleWhitespace()
     Test handling of rule whitespace, for both RBT and UnicodeSet.
public  voidTestSTV()
    
public  voidTestSanskritLatinRT()
    
public  voidTestScriptAllCodepoints()
     This test is not in trnstst.cpp.
public  voidTestSegments()
     Test segments and segment references.
public  voidTestSimpleRules()
    
public  voidTestSourceTargetSet()
     Test the source and target set API.
public  voidTestSpecialCases()
    
public  voidTestSupplemental()
    
public  voidTestSurrogateCasing()
    
public  voidTestTeluguLatinRT()
    
public  voidTestTitleAccents()
    
public  voidTestToRules()
    
public  voidTestToRulesMark()
     Mark's toRules test.
public  voidTestUndefinedVariable()
     Test undefined variable.
public  voidTestUserFunction()
     Test that user-registered transliterators can be used under function syntax.
public  voidTestVariableRange()
     Test the use variable range pragma, making sure that use of variable range characters is detected and flagged as an error.
 voidcheckRules(String label, Transliterator t2, String testRulesForward)
    
 voidexpect(String rules, String source, String expectedResult, Transliterator.Position pos)
    
 voidexpect(String rules, String source, String expectedResult)
    
 voidexpect(Transliterator t, String source, String expectedResult, Transliterator reverseTransliterator)
    
 voidexpect(Transliterator t, String source, String expectedResult)
    
 voidexpect(Transliterator t, String source, String expectedResult, Transliterator.Position pos)
    
 booleanexpectAux(String tag, String source, String result, String expectedResult)
    
 booleanexpectAux(String tag, String source, String result, boolean pass, String expectedResult)
    
 booleanexpectAux(String tag, String source, boolean pass, String expectedResult)
    
 booleanexpectAux(String tag, String[] results, boolean pass, String expectedResult)
    
public  StringfindMatch(String source, String[][] pairs)
    
public static  voidmain(String[] args)
    

Field Detail
DESERET_DEE
final static String DESERET_DEE(Code)



DESERET_dee
final static String DESERET_dee(Code)



registerRules
final static String[][] registerRules(Code)



testCases
final static String[][] testCases(Code)





Method Detail
CharsToUnicodeString
final static String CharsToUnicodeString(String s)(Code)



CheckIncrementalAux
public void CheckIncrementalAux(Transliterator t, String input)(Code)



TestAliasInverseID
public void TestAliasInverseID()(Code)
Check ID of inverse of alias. (J22)



TestAlternateSyntax
public void TestAlternateSyntax()(Code)



TestAnchorMasking
public void TestAnchorMasking()(Code)
Test anchor masking



TestAnchors
public void TestAnchors()(Code)
Test anchors



TestAny
public void TestAny()(Code)



TestAnyX
public void TestAnyX()(Code)
Test the Any-X transliterators.



TestArbitraryVariableValues
public void TestArbitraryVariableValues()(Code)
Test zero length and > 1 char length variable values. Test use of variable refs in UnicodeSets.



TestBeginEnd
public void TestBeginEnd()(Code)



TestBeginEndToRules
public void TestBeginEndToRules()(Code)



TestCaseMap
public void TestCaseMap()(Code)
Test the case mapping transliterators.



TestCompoundFilter
public void TestCompoundFilter()(Code)
Compound filter semantics were orginially not implemented correctly. Originally, each component filter f(i) is replaced by f'(i) = f(i) && g, where g is the filter for the compound transliterator. From Mark: Suppose and I have a transliterator X. Internally X is "Greek-Latin; Latin-Cyrillic; Any-Lower". I use a filter [^A]. The compound should convert all greek characters (through latin) to cyrillic, then lowercase the result. The filter should say "don't touch 'A' in the original". But because an intermediate result happens to go through "A", the Greek Alpha gets hung up.



TestCompoundFilterID
public void TestCompoundFilterID()(Code)
Test compound filter ID syntax



TestCompoundHex
public void TestCompoundHex()(Code)
Compose the hex transliterators forward and reverse.



TestCompoundInverse
public void TestCompoundInverse()(Code)
Test inverse of Greek-Latin; Title()



TestCompoundInverseID
public void TestCompoundInverseID()(Code)
Test IDs of inverses of compound transliterators. (J20)



TestCompoundKana
public void TestCompoundKana()(Code)
Compose the Kana transliterator forward and reverse and try some strings that should come out unchanged.



TestCompoundLatinRT
public void TestCompoundLatinRT()(Code)



TestCompoundRBT
public void TestCompoundRBT()(Code)
Test compound RBT rules.



TestContext
public void TestContext()(Code)



TestCopyJ476
public void TestCopyJ476()(Code)



TestCoverage
public void TestCoverage()(Code)
Improve code coverage.



TestCreateInstance
public void TestCreateInstance()(Code)



TestCursorOffset
public void TestCursorOffset()(Code)
Test cursor positioning outside of the key



TestDevanagariLatinRT
public void TestDevanagariLatinRT()(Code)



TestDisplayName
public void TestDisplayName()(Code)
Make sure display names of variants look reasonable.



TestEmptyContext
public void TestEmptyContext()(Code)
Test empty context.



TestEscape
public void TestEscape()(Code)
Test Escape and Unescape transliterators.



TestFilterIDs
public void TestFilterIDs()(Code)
Test filter syntax in IDs. (J23)



TestFiltering
public void TestFiltering()(Code)
Do some basic tests of filtering.



TestFunction
public void TestFunction()(Code)



TestGurmukhiDevanagari
public void TestGurmukhiDevanagari()(Code)
Test Gurmukhi-Devanagari Tippi and Bindi



TestHiraganaKatakana
public void TestHiraganaKatakana()(Code)
Test the Hiragana-Katakana transliterator.



TestIDForms
public void TestIDForms()(Code)
Test ID form variants



TestIncrementalProgress
public void TestIncrementalProgress()(Code)



TestInlineSet
public void TestInlineSet()(Code)
Test inline set syntax and set variable syntax.



TestInstantiation
public void TestInstantiation()(Code)



TestInterIndic
public void TestInterIndic()(Code)
Test inter-Indic transliterators. These are composed.



TestInvalidBackRef
public void TestInvalidBackRef()(Code)



TestInvalidPostContext
public void TestInvalidPostContext()(Code)
Test invalid post context error handling



TestJ277
public void TestJ277()(Code)
Regression test for bugs found in Greek transliteration.



TestJ329
public void TestJ329()(Code)



TestKeyboard
public void TestKeyboard()(Code)
Basic test of keyboard.



TestKeyboard2
public void TestKeyboard2()(Code)
Basic test of keyboard with cursor.



TestKeyboard3
public void TestKeyboard3()(Code)
Test keyboard transliteration with back-replacement.



TestLiberalizedID
public void TestLiberalizedID()(Code)
Test liberalized ID syntax. 1006c



TestLocaleInstantiation
public void TestLocaleInstantiation()(Code)
Test instantiation from a locale.



TestLocaleResource
public void TestLocaleResource()(Code)
Basic test of a locale resource based rule.



TestMulticharStringSet
public void TestMulticharStringSet()(Code)



TestNFDChainRBT
public void TestNFDChainRBT()(Code)
Test NFD chaining with RBT



TestNameMap
public void TestNameMap()(Code)
Test the name mapping transliterators.



TestNewEngine
public void TestNewEngine()(Code)
Test various failure points of the new 2.0 engine.



TestNormalizationTransliterator
public void TestNormalizationTransliterator()(Code)
Test the normalization transliterator.



TestNullInverse
public void TestNullInverse()(Code)
Inverse of "Null" should be "Null". (J21)



TestOutputSet
public void TestOutputSet()(Code)
Make sure sets on output are disallowed.



TestParseError
public void TestParseError()(Code)
Make sure parse errors reference the right line.



TestPatternQuoting
public void TestPatternQuoting()(Code)
Test pattern quoting and escape mechanisms.



TestPositionAPI
public void TestPositionAPI()(Code)



TestPositionHandling
public void TestPositionHandling()(Code)
Confirm that the contextStart, contextLimit, start, and limit behave correctly.



TestPropertySet
public void TestPropertySet()(Code)
Test new property set syntax



TestQuantifiedSegment
public void TestQuantifiedSegment()(Code)
Test quantified segment behavior. We want: ([abc])+ > x $1 x; applied to "cba" produces "xax"



TestQuantifier
public void TestQuantifier()(Code)



TestRegisterAlias
public void TestRegisterAlias()(Code)



TestRemove
public void TestRemove()(Code)
Test the "Remove" transliterator.



TestRuleBasedInverse
public void TestRuleBasedInverse()(Code)
Create some inverses and confirm that they work. We have to be careful how we do this, since the inverses will not be true inverses -- we can't throw any random string at the composition of the transliterators and expect the identity function. F x F' != I. However, if we are careful about the input, we will get the expected results.



TestRuleWhitespace
public void TestRuleWhitespace()(Code)
Test handling of rule whitespace, for both RBT and UnicodeSet.



TestSTV
public void TestSTV()(Code)



TestSanskritLatinRT
public void TestSanskritLatinRT()(Code)



TestScriptAllCodepoints
public void TestScriptAllCodepoints()(Code)
This test is not in trnstst.cpp. This test has been moved from com/ibm/icu/dev/test/lang/TestUScript.java during ICU4J modularization to remove dependency of tests on Transliterator.



TestSegments
public void TestSegments()(Code)
Test segments and segment references.



TestSimpleRules
public void TestSimpleRules()(Code)



TestSourceTargetSet
public void TestSourceTargetSet()(Code)
Test the source and target set API. These are only implemented for RBT and CompoundTransliterator at this time.



TestSpecialCases
public void TestSpecialCases()(Code)



TestSupplemental
public void TestSupplemental()(Code)



TestSurrogateCasing
public void TestSurrogateCasing()(Code)



TestTeluguLatinRT
public void TestTeluguLatinRT()(Code)



TestTitleAccents
public void TestTitleAccents()(Code)
Test title case handling of accent (should ignore accents)



TestToRules
public void TestToRules()(Code)



TestToRulesMark
public void TestToRulesMark()(Code)
Mark's toRules test.



TestUndefinedVariable
public void TestUndefinedVariable()(Code)
Test undefined variable.



TestUserFunction
public void TestUserFunction()(Code)
Test that user-registered transliterators can be used under function syntax.



TestVariableRange
public void TestVariableRange()(Code)
Test the use variable range pragma, making sure that use of variable range characters is detected and flagged as an error.



checkRules
void checkRules(String label, Transliterator t2, String testRulesForward)(Code)



expect
void expect(String rules, String source, String expectedResult, Transliterator.Position pos)(Code)



expect
void expect(String rules, String source, String expectedResult)(Code)



expect
void expect(Transliterator t, String source, String expectedResult, Transliterator reverseTransliterator)(Code)



expect
void expect(Transliterator t, String source, String expectedResult)(Code)



expect
void expect(Transliterator t, String source, String expectedResult, Transliterator.Position pos)(Code)



expectAux
boolean expectAux(String tag, String source, String result, String expectedResult)(Code)



expectAux
boolean expectAux(String tag, String source, String result, boolean pass, String expectedResult)(Code)



expectAux
boolean expectAux(String tag, String source, boolean pass, String expectedResult)(Code)



expectAux
boolean expectAux(String tag, String[] results, boolean pass, String expectedResult)(Code)



findMatch
public String findMatch(String source, String[][] pairs)(Code)



main
public static void main(String[] args) throws Exception(Code)



Fields inherited from com.ibm.icu.dev.test.TestFmwk
protected TestParams params(Code)(Java Doc)

Methods inherited from com.ibm.icu.dev.test.TestFmwk
protected boolean assertEquals(String message, boolean expected, boolean actual)(Code)(Java Doc)
protected boolean assertEquals(String message, long expected, long actual)(Code)(Java Doc)
protected boolean assertEquals(String message, float expected, float actual, double error)(Code)(Java Doc)
protected boolean assertEquals(String message, double expected, double actual, double error)(Code)(Java Doc)
protected boolean assertEquals(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertFalse(String message, boolean condition)(Code)(Java Doc)
protected boolean assertNotEquals(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertNotNull(String message, Object actual)(Code)(Java Doc)
protected boolean assertNotSame(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertNull(String message, Object actual)(Code)(Java Doc)
protected boolean assertSame(String message, Object expected, Object actual)(Code)(Java Doc)
protected boolean assertTrue(String message, boolean condition)(Code)(Java Doc)
protected int checkArray(String msg, String array, String expected)(Code)(Java Doc)
protected int checkArray(String msg, Locale array, String expected)(Code)(Java Doc)
protected int checkArray(String msg, ULocale array, String expected)(Code)(Java Doc)
protected Random createRandom()(Code)(Java Doc)
protected void fail(String message)(Code)(Java Doc)
protected static synchronized java.util.Date getDate(int year, int month, int dom)(Code)(Java Doc)
protected String getDescription()(Code)(Java Doc)
protected int getErrorCount()(Code)(Java Doc)
public PrintWriter getErrorLogPrintWriter()(Code)(Java Doc)
public int getInclusion()(Code)(Java Doc)
public PrintWriter getLogPrintWriter()(Code)(Java Doc)
protected String getMethodDescription(String name)(Code)(Java Doc)
protected TestFmwk getSubtest(String prefix) throws TestFmwkException(Code)(Java Doc)
protected Target getTargets(String targetName)(Code)(Java Doc)
public String getTranslitTestFilter()(Code)(Java Doc)
protected void handleException(Throwable e)(Code)(Java Doc)
public static String hex(char[] s)(Code)(Java Doc)
public static String hex(byte[] s)(Code)(Java Doc)
public static String hex(char ch)(Code)(Java Doc)
public static String hex(int ch)(Code)(Java Doc)
public static String hex(String s)(Code)(Java Doc)
public static String hex(StringBuffer s)(Code)(Java Doc)
protected void init() throws Exception(Code)(Java Doc)
public boolean isDateAtLeast(int year, int month, int day)(Code)(Java Doc)
public boolean isMemTracking()(Code)(Java Doc)
public boolean isModularBuild()(Code)(Java Doc)
public boolean isQuick()(Code)(Java Doc)
public boolean isTiming()(Code)(Java Doc)
public boolean isVerbose()(Code)(Java Doc)
public void msg(String message, int level, boolean incCount, boolean newln)(Code)(Java Doc)
public boolean noData()(Code)(Java Doc)
public static String prettify(String s)(Code)(Java Doc)
public static String prettify(StringBuffer s)(Code)(Java Doc)
public Target resolveTarget(TestParams params)(Code)(Java Doc)
public Target resolveTarget(TestParams params, String targetPath)(Code)(Java Doc)
public void run(String[] args)(Code)(Java Doc)
public int run(String[] args, PrintWriter log)(Code)(Java Doc)
public int runTests(TestParams params, String[] tests)(Code)(Java Doc)
protected TimeZone safeGetTimeZone(String id)(Code)(Java Doc)
public void usage()(Code)(Java Doc)
public static void usage(PrintWriter pw, String className)(Code)(Java Doc)
protected boolean validate()(Code)(Java Doc)
protected boolean validateMethod(String name)(Code)(Java Doc)

Fields inherited from com.ibm.icu.dev.test.AbstractTestLog
public static boolean dontSkipForVersion(Code)(Java Doc)

Methods inherited from com.ibm.icu.dev.test.AbstractTestLog
final public void err(String message)(Code)(Java Doc)
final public void errln(String message)(Code)(Java Doc)
public boolean isICUVersionAtLeast(int major, int minor)(Code)(Java Doc)
final public void log(String message)(Code)(Java Doc)
final public void logln(String message)(Code)(Java Doc)
abstract public void msg(String message, int level, boolean incCount, boolean newln)(Code)(Java Doc)
public boolean skipIfBeforeICU(int major, int minor)(Code)(Java Doc)
final public void warn(String message)(Code)(Java Doc)
final public void warnln(String message)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.