net.firstpartners.nounit.utility
Class TestTextUtil

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.firstpartners.nounit.utility.TestTextUtil
All Implemented Interfaces:
junit.framework.Test

public class TestTextUtil
extends junit.framework.TestCase

Tests the functions in the Util Class


Constructor Summary
TestTextUtil(java.lang.String name)
          Constructor Required by Junit
 
Method Summary
static void main(java.lang.String[] args)
          Enable Junit to run this Class individually
 void setUp()
          Method to setup logging test
static junit.framework.Test suite()
          Enable Junit to run this class
 void testRemove()
          Test the remove funtionality
 void testRemoveTrailing()
          Test the remove trailing functionality
 void testReplace()
          Tests replace method
 void testReplaceAll()
          Tests replaceAll method
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestTextUtil

public TestTextUtil(java.lang.String name)
Constructor Required by Junit
Parameters:
name -  
Method Detail

setUp

public void setUp()
Method to setup logging test
Overrides:
setUp in class junit.framework.TestCase

main

public static void main(java.lang.String[] args)
Enable Junit to run this Class individually
Parameters:
args -  

suite

public static junit.framework.Test suite()
Enable Junit to run this class
Returns:
TestDataCaptureDefaults.class

testReplace

public void testReplace()
Tests replace method

testReplaceAll

public void testReplaceAll()
Tests replaceAll method

testRemove

public void testRemove()
Test the remove funtionality

testRemoveTrailing

public void testRemoveTrailing()
Test the remove trailing functionality