org.pentaho.di.compatibility
Class ValueTest

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

public class ValueTest
extends junit.framework.TestCase

Test class for the basic functionality of Value.

Author:
Sven Boden

Constructor Summary
ValueTest()
           
 
Method Summary
 void testBooleanOperators()
          Test boolean operators.
 void testBooleanOperators1()
          Test boolean operators.
 void testByteToHexEncode()
          Test hexEncode.
 void testClone1()
          Constructors using Values.
 void testClone2()
          Constructors using Values.
 void testComparators()
          Test comparators.
 void testConstructor1()
          Constructor test 1.
 void testConstructor2()
          Constructor test 2.
 void testConstructor3()
          Constructors using Values
 void testConstructor4()
          Constructors using Values
 void testConstructor5()
          Constructors using Values
 void testGetStringLength()
          Test of getStringLength().
 void testGetXML()
           
 void testHexByteRegression()
          Regression test for bug: hexdecode/encode would not work for some UTF8 strings.
 void testHexCharTest()
          Test for Hex to Char decoding and vica versa.
 void testHexToByteDecode()
          Test hexToByteDecode.
 void testIsEqualTo()
           
 void testIsNumeric()
          Test for isNumeric().
 void testLike()
          Test like.
 void testLooseEnds()
          Stuff which we didn't get in other checks.
 void testSetValue()
          Test of setValue()
 void testToIntegerNumber()
          Test of string representation of Integer Value.
 void testToStringBoolean()
          Test of boolean representation of Value.
 void testToStringDate()
          Test of boolean representation of Value.
 void testToStringMeta()
           
 void testToStringNumber()
          Test of string representation of Number Value.
 void testToStringString()
          Test of string representation of String Value.
 void testTrim()
          Test trim, ltrim, rtrim.
 
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

ValueTest

public ValueTest()
Method Detail

testConstructor1

public void testConstructor1()
Constructor test 1.


testConstructor2

public void testConstructor2()
Constructor test 2.


testConstructor3

public void testConstructor3()
Constructors using Values


testConstructor4

public void testConstructor4()
Constructors using Values


testConstructor5

public void testConstructor5()
Constructors using Values


testToStringString

public void testToStringString()
Test of string representation of String Value.


testToStringNumber

public void testToStringNumber()
Test of string representation of Number Value.


testToIntegerNumber

public void testToIntegerNumber()
Test of string representation of Integer Value.


testToStringBoolean

public void testToStringBoolean()
Test of boolean representation of Value.


testToStringDate

public void testToStringDate()
Test of boolean representation of Value.


testToStringMeta

public void testToStringMeta()

testClone1

public void testClone1()
Constructors using Values.


testGetStringLength

public void testGetStringLength()
Test of getStringLength().


testGetXML

public void testGetXML()

testSetValue

public void testSetValue()
Test of setValue()


testIsNumeric

public void testIsNumeric()
Test for isNumeric().


testIsEqualTo

public void testIsEqualTo()

testBooleanOperators

public void testBooleanOperators()
Test boolean operators.


testBooleanOperators1

public void testBooleanOperators1()
Test boolean operators.


testComparators

public void testComparators()
Test comparators.


testTrim

public void testTrim()
Test trim, ltrim, rtrim.


testHexToByteDecode

public void testHexToByteDecode()
                         throws KettleValueException
Test hexToByteDecode.

Throws:
KettleValueException

testByteToHexEncode

public void testByteToHexEncode()
Test hexEncode.


testHexByteRegression

public void testHexByteRegression()
                           throws KettleValueException
Regression test for bug: hexdecode/encode would not work for some UTF8 strings.

Throws:
KettleValueException

testHexCharTest

public void testHexCharTest()
                     throws KettleValueException
Test for Hex to Char decoding and vica versa.

Throws:
KettleValueException

testLike

public void testLike()
Test like.


testLooseEnds

public void testLooseEnds()
Stuff which we didn't get in other checks.


testClone2

public void testClone2()
Constructors using Values.