org.shapelogic.logic
Class ParametricRuleTaskTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.shapelogic.logic.ParametricRuleTaskTest
All Implemented Interfaces:
junit.framework.Test

public class ParametricRuleTaskTest
extends junit.framework.TestCase

Unit test for ParametricRuleTask.

Author:
Sami Badawi

Constructor Summary
ParametricRuleTaskTest()
           
 
Method Summary
protected  void setUp()
           
 void testReplaceAll()
          String.replaceAll() is using regex, and it is always confusing.
 void testTransformExpression()
          Main use of the ParametricRuleTask.transformExpression(), simple replacement
 void testTransformExpressionWithNoVariable()
          If the # sign is not used nothing should original expression should just be maintained.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParametricRuleTaskTest

public ParametricRuleTaskTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testReplaceAll

public void testReplaceAll()
String.replaceAll() is using regex, and it is always confusing. Remember to put the character in []


testTransformExpression

public void testTransformExpression()
Main use of the ParametricRuleTask.transformExpression(), simple replacement


testTransformExpressionWithNoVariable

public void testTransformExpressionWithNoVariable()
If the # sign is not used nothing should original expression should just be maintained.



Copyright © 2009. All Rights Reserved.