com.ls.util.text
Class StringToolsTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.ls.util.text.StringToolsTestCase
All Implemented Interfaces:
junit.framework.Test

public class StringToolsTestCase
extends junit.framework.TestCase

Test class for the WorkflowBean which contains the test of the method which will check for variables in the logic environment.

Version:
$Revision: 1.3 $
Author:
Last modified by $Author: PMandal $

Constructor Summary
StringToolsTestCase(String name)
          Constructor for the workflow bean test case
 
Method Summary
static void main(String[] args)
          use to run using kawa
protected  void setUp()
          Setup the test replacement map containing the patterns and the replacement Strings
static junit.framework.Test suite()
          use to run more than one Test cases at the same time
 void testPatternRemovement()
          Remove patterns from a source String
 void testPatternReplacement()
          Replace pattern in a source string with it replacement
 void testPatternReplacements()
          Replace patterns in a source string with it replacements
 
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, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, 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

StringToolsTestCase

public StringToolsTestCase(String name)
Constructor for the workflow bean test case
Parameters:
name - Probably the name of the test.
Method Detail

setUp

protected void setUp()
Setup the test replacement map containing the patterns and the replacement Strings
Overrides:
setUp in class junit.framework.TestCase

testPatternReplacements

public void testPatternReplacements()
Replace patterns in a source string with it replacements

testPatternReplacement

public void testPatternReplacement()
Replace pattern in a source string with it replacement

testPatternRemovement

public void testPatternRemovement()
Remove patterns from a source String

suite

public static junit.framework.Test suite()
use to run more than one Test cases at the same time

main

public static void main(String[] args)
use to run using kawa