org.jivesoftware.smack.util
Class StringUtilsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jivesoftware.smack.util.StringUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class StringUtilsTest
extends junit.framework.TestCase

A test case for the StringUtils class.


Constructor Summary
StringUtilsTest()
           
 
Method Summary
 void testEncodeBase64()
          This method tests 2 StringUtil methods - encodeBase64(String) and encodeBase64(byte[]).
 void testEncodeHex()
           
 void testEscapeForXML()
           
 void testHash()
           
 void testParsing()
           
 void testRandomString()
          This method tests 2 StringUtil methods - decodeBase64(String) and decodeBase64(byte[]).
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringUtilsTest

public StringUtilsTest()
Method Detail

testEscapeForXML

public void testEscapeForXML()

testHash

public void testHash()

testEncodeHex

public void testEncodeHex()

testEncodeBase64

public void testEncodeBase64()
This method tests 2 StringUtil methods - encodeBase64(String) and encodeBase64(byte[]).


testRandomString

public void testRandomString()
This method tests 2 StringUtil methods - decodeBase64(String) and decodeBase64(byte[]).


testParsing

public void testParsing()