org.apache.commons.codec.language
Class Caverphone1Test

java.lang.Object
  extended by org.apache.commons.codec.StringEncoderAbstractTest
      extended by org.apache.commons.codec.language.Caverphone1Test

public class Caverphone1Test
extends StringEncoderAbstractTest

Tests Caverphone1.

Since:
1.5
Version:
$Id: Caverphone1Test.html 889935 2013-12-11 05:05:13Z ggregory $

Field Summary
 
Fields inherited from class org.apache.commons.codec.StringEncoderAbstractTest
stringEncoder
 
Constructor Summary
Caverphone1Test()
           
 
Method Summary
protected  org.apache.commons.codec.StringEncoder createStringEncoder()
           
 void testCaverphoneRevisitedCommonCodeAT1111()
          Tests example adapted from version 2.0 http://caversham.otago.ac.nz/files/working/ctp150804.pdf AT1111 words: add, aid, at, art, eat, earth, head, hit, hot, hold, hard, heart, it, out, old
 void testEndMb()
           
 void testIsCaverphoneEquals()
          Tests some examples from version 2.0 http://caversham.otago.ac.nz/files/working/ctp150804.pdf
 void testSpecificationV1Examples()
          Tests example from http://caversham.otago.ac.nz/files/working/ctp060902.pdf
 void testWikipediaExamples()
          Tests examples from http://en.wikipedia.org/wiki/Caverphone
 
Methods inherited from class org.apache.commons.codec.StringEncoderAbstractTest
checkEncoding, checkEncodings, checkEncodingVariations, getStringEncoder, testEncodeEmpty, testEncodeNull, testEncodeWithInvalidObject, testLocaleIndependence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Caverphone1Test

public Caverphone1Test()
Method Detail

createStringEncoder

protected org.apache.commons.codec.StringEncoder createStringEncoder()
Specified by:
createStringEncoder in class StringEncoderAbstractTest

testCaverphoneRevisitedCommonCodeAT1111

public void testCaverphoneRevisitedCommonCodeAT1111()
                                             throws org.apache.commons.codec.EncoderException
Tests example adapted from version 2.0 http://caversham.otago.ac.nz/files/working/ctp150804.pdf AT1111 words: add, aid, at, art, eat, earth, head, hit, hot, hold, hard, heart, it, out, old

Throws:
org.apache.commons.codec.EncoderException

testEndMb

public void testEndMb()
               throws org.apache.commons.codec.EncoderException
Throws:
org.apache.commons.codec.EncoderException

testIsCaverphoneEquals

public void testIsCaverphoneEquals()
                            throws org.apache.commons.codec.EncoderException
Tests some examples from version 2.0 http://caversham.otago.ac.nz/files/working/ctp150804.pdf

Throws:
org.apache.commons.codec.EncoderException

testSpecificationV1Examples

public void testSpecificationV1Examples()
                                 throws org.apache.commons.codec.EncoderException
Tests example from http://caversham.otago.ac.nz/files/working/ctp060902.pdf

Throws:
org.apache.commons.codec.EncoderException

testWikipediaExamples

public void testWikipediaExamples()
                           throws org.apache.commons.codec.EncoderException
Tests examples from http://en.wikipedia.org/wiki/Caverphone

Throws:
org.apache.commons.codec.EncoderException


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.