com.myjavatools.lib
Class TestStrings

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.myjavatools.lib.TestStrings
All Implemented Interfaces:
junit.framework.Test

public class TestStrings
extends junit.framework.TestCase


Constructor Summary
TestStrings(java.lang.String name)
           
 
Method Summary
static void assertEquals(java.lang.String message, byte[] expectedArray, byte[] actualArray)
           
static void assertEquals(java.lang.String message, char[] expectedArray, char[] actualArray)
           
static void assertEquals(java.lang.String message, java.lang.Object[] expectedArray, java.lang.Object[] actualArray)
           
 void testAsProperties()
           
 void testCountChar()
           
 void testCountLeadingSpaces()
           
 void testCountTrailingSpaces()
           
 void testCrc32()
           
 void testDecode()
           
 void testDecodeJavaString()
           
 void testEncode()
           
 void testExtractValue1()
           
 void testExtractValue2()
           
 void testFill()
           
 void testFormat1()
           
 void testFormat2()
           
 void testFormat3()
           
 void testGrep()
           
 void testGrep1()
           
 void testHasAlpha()
           
 void testHexDump()
           
 void testHexDump1()
           
 void testHexDump2()
           
 void testHtmlEncode()
           
 void testIndexOf1()
           
 void testIndexOf2()
           
 void testIndexOf3()
           
 void testIndexOf4()
           
 void testIsAlmostEmpty()
           
 void testIsAlpha()
           
 void testIsVowel()
           
 void testJoin()
           
 void testJoin1()
           
 void testJoin2()
           
 void testLastIndexOf()
           
 void testNeedsEncoding()
           
 void testNeedsEncoding1()
           
 void testOneOf2()
           
 void testOneOf3()
           
 void testOneOf4()
           
 void testPack()
           
 void testReplace()
           
 void testSgmlEntity()
           
 void testSplit()
           
 void testTextHeight()
           
 void testTextWidth()
           
 void testToCEncoding()
           
 void testToCEncoding1()
           
 void testToHex()
           
 void testToHex1()
           
 void testToHex2()
           
 void testToHex3()
           
 void testToHex4()
           
 void testToHexReadable()
           
 void testToHexReadable1()
           
 void testToHexReadable2()
           
 void testToHexReadable3()
           
 void testToJavaEncoding()
           
 void testToJavaEncoding1()
           
 void testToJavaEncoding2()
           
 void testToJavaEncoding3()
           
 void testToJavaEncoding4()
           
 void testToJavaEncoding5()
           
 void testToJavaHexEncoding()
           
 void testToJavaHexEncoding1()
           
 void testToJavaOctalEncoding()
           
 void testToPropertiesEncoding()
           
 void testToPropertiesEncoding1()
           
 void testToReadable()
           
 void testToReadable1()
           
 void testToSgmlEncoding()
           
 void testToSgmlEncoding1()
           
 void testToString()
           
 void testToStrings()
           
 void testUnpack()
           
 void testUnzip()
           
 void testUnzip1()
           
 void testWordCount()
           
 void testZip()
           
 void testZip2bytes()
           
 void testZip8bit()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestStrings

public TestStrings(java.lang.String name)
Method Detail

assertEquals

public static void assertEquals(java.lang.String message,
                                java.lang.Object[] expectedArray,
                                java.lang.Object[] actualArray)

assertEquals

public static void assertEquals(java.lang.String message,
                                byte[] expectedArray,
                                byte[] actualArray)

assertEquals

public static void assertEquals(java.lang.String message,
                                char[] expectedArray,
                                char[] actualArray)

testCountTrailingSpaces

public void testCountTrailingSpaces()

testToSgmlEncoding

public void testToSgmlEncoding()

testHtmlEncode

public void testHtmlEncode()

testUnpack

public void testUnpack()

testDecode

public void testDecode()
                throws java.io.IOException,
                       java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

testToHex

public void testToHex()

testToReadable

public void testToReadable()

testToReadable1

public void testToReadable1()

testUnzip

public void testUnzip()
               throws java.io.IOException,
                      java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

testToHexReadable

public void testToHexReadable()

testAsProperties

public void testAsProperties()

testFormat2

public void testFormat2()

testGrep

public void testGrep()
              throws java.util.regex.PatternSyntaxException
Throws:
java.util.regex.PatternSyntaxException

testToPropertiesEncoding

public void testToPropertiesEncoding()

testTextHeight

public void testTextHeight()

testJoin

public void testJoin()

testHasAlpha

public void testHasAlpha()

testSplit

public void testSplit()

testToCEncoding

public void testToCEncoding()

testToJavaEncoding

public void testToJavaEncoding()

testDecodeJavaString

public void testDecodeJavaString()

testZip

public void testZip()
             throws java.io.IOException,
                    java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

testCrc32

public void testCrc32()
               throws java.io.IOException,
                      java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

testHexDump

public void testHexDump()

testFormat3

public void testFormat3()

testCountLeadingSpaces

public void testCountLeadingSpaces()

testToJavaEncoding1

public void testToJavaEncoding1()

testToJavaHexEncoding

public void testToJavaHexEncoding()

testToJavaHexEncoding1

public void testToJavaHexEncoding1()

testToJavaOctalEncoding

public void testToJavaOctalEncoding()

testExtractValue1

public void testExtractValue1()

testExtractValue2

public void testExtractValue2()

testJoin1

public void testJoin1()

testJoin2

public void testJoin2()

testToHexReadable1

public void testToHexReadable1()

testHexDump1

public void testHexDump1()

testToHexReadable2

public void testToHexReadable2()

testToJavaEncoding2

public void testToJavaEncoding2()

testCountChar

public void testCountChar()

testToJavaEncoding3

public void testToJavaEncoding3()

testSgmlEntity

public void testSgmlEntity()

testHexDump2

public void testHexDump2()

testToHex1

public void testToHex1()

testToStrings

public void testToStrings()

testPack

public void testPack()

testGrep1

public void testGrep1()

testToHexReadable3

public void testToHexReadable3()

testNeedsEncoding

public void testNeedsEncoding()

testFill

public void testFill()

testOneOf3

public void testOneOf3()

testToJavaEncoding4

public void testToJavaEncoding4()

testZip2bytes

public void testZip2bytes()
                   throws java.io.IOException,
                          java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

testToHex2

public void testToHex2()

testFormat1

public void testFormat1()

testToHex3

public void testToHex3()

testNeedsEncoding1

public void testNeedsEncoding1()

testOneOf4

public void testOneOf4()

testUnzip1

public void testUnzip1()
                throws java.io.IOException,
                       java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

testToHex4

public void testToHex4()

testToCEncoding1

public void testToCEncoding1()

testIsAlpha

public void testIsAlpha()

testOneOf2

public void testOneOf2()

testTextWidth

public void testTextWidth()

testToJavaEncoding5

public void testToJavaEncoding5()

testZip8bit

public void testZip8bit()
                 throws java.io.IOException,
                        java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

testIsVowel

public void testIsVowel()

testEncode

public void testEncode()
                throws java.io.IOException,
                       java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

testWordCount

public void testWordCount()

testIndexOf1

public void testIndexOf1()

testIndexOf2

public void testIndexOf2()

testLastIndexOf

public void testLastIndexOf()

testIndexOf3

public void testIndexOf3()

testIndexOf4

public void testIndexOf4()

testIsAlmostEmpty

public void testIsAlmostEmpty()

testToSgmlEncoding1

public void testToSgmlEncoding1()

testReplace

public void testReplace()

testToPropertiesEncoding1

public void testToPropertiesEncoding1()

testToString

public void testToString()