org.pentaho.di.compatibility
Class ValueStringTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.pentaho.di.compatibility.ValueStringTest
All Implemented Interfaces:
junit.framework.Test

public class ValueStringTest
extends junit.framework.TestCase

Test class for the basic functionality of ValueString.

Author:
Sven Boden

Constructor Summary
ValueStringTest()
           
 
Method Summary
 void testClone()
           
 void testConstructor1()
          Constructor test 1.
 void testGetNullValue()
          Set the value to null and see what comes out on conversions.
 void testGetNumericValue1()
          Set the value to an integer number and see what comes out on conversions.
 void testGetNumericValue2()
          Set the value to an "float" number and see what comes out on conversions.
 void testGetString()
          Set the value to a non numeric string.
 void testSetBigNumber()
           
 void testSetBoolean()
          Test booleans in ValueString
 void testSetDate()
          Test dates in ValueString
 void testSetInteger()
           
 void testSetNumber()
          Test setting a number.
 void testSetString()
          Test setting a string.
 
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

ValueStringTest

public ValueStringTest()
Method Detail

testConstructor1

public void testConstructor1()
Constructor test 1.


testGetNullValue

public void testGetNullValue()
Set the value to null and see what comes out on conversions.


testGetNumericValue1

public void testGetNumericValue1()
Set the value to an integer number and see what comes out on conversions.


testGetNumericValue2

public void testGetNumericValue2()
Set the value to an "float" number and see what comes out on conversions.


testGetString

public void testGetString()
Set the value to a non numeric string.


testSetString

public void testSetString()
Test setting a string.


testSetNumber

public void testSetNumber()
Test setting a number.


testSetDate

public void testSetDate()
                 throws ParseException
Test dates in ValueString

Throws:
ParseException

testSetBoolean

public void testSetBoolean()
Test booleans in ValueString


testSetInteger

public void testSetInteger()

testSetBigNumber

public void testSetBigNumber()

testClone

public void testClone()