org.pentaho.di.core.row
Class ValueMetaTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.pentaho.di.core.row.ValueMetaTest
All Implemented Interfaces:
junit.framework.Test

public class ValueMetaTest
extends junit.framework.TestCase

Test functionality in ValueMeta

Author:
sboden

Constructor Summary
ValueMetaTest()
           
 
Method Summary
 void testBigNumberToStringToBigNumber()
           
 void testCompareBigNumberNormalStorageData()
           
 void testCompareBooleanNormalStorageData()
           
 void testCompareDatesNormalStorageData()
           
 void testCompareIntegersNormalStorageData()
           
 void testCompareNumbersNormalStorageData()
           
 void testCompareStringsNormalStorageData()
           
 void testConvertDataDate()
           
 void testConvertDataInteger()
           
 void testConvertDataNumber()
           
 void testCvtStringBinaryString()
           
 void testCvtStringToBinaryString()
           
 void testDateToStringToDate()
           
 void testIntegerToStringToInteger()
           
 void testLazyConversionBigNumber()
          Lazy conversion is used to read data from disk in a binary format.
 void testLazyConversionInteger()
          Lazy conversion is used to read data from disk in a binary format.
 void testLazyConversionNumber()
          Lazy conversion is used to read data from disk in a binary format.
 void testNumberToStringToNumber()
           
 
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

ValueMetaTest

public ValueMetaTest()
Method Detail

testCvtStringToBinaryString

public void testCvtStringToBinaryString()
                                 throws Exception
Throws:
Exception

testCvtStringBinaryString

public void testCvtStringBinaryString()
                               throws Exception
Throws:
Exception

testIntegerToStringToInteger

public void testIntegerToStringToInteger()
                                  throws Exception
Throws:
Exception

testNumberToStringToNumber

public void testNumberToStringToNumber()
                                throws Exception
Throws:
Exception

testBigNumberToStringToBigNumber

public void testBigNumberToStringToBigNumber()
                                      throws Exception
Throws:
Exception

testDateToStringToDate

public void testDateToStringToDate()
                            throws Exception
Throws:
Exception

testConvertDataDate

public void testConvertDataDate()
                         throws Exception
Throws:
Exception

testConvertDataInteger

public void testConvertDataInteger()
                            throws Exception
Throws:
Exception

testConvertDataNumber

public void testConvertDataNumber()
                           throws Exception
Throws:
Exception

testLazyConversionInteger

public void testLazyConversionInteger()
                               throws Exception
Lazy conversion is used to read data from disk in a binary format. The data itself is not converted from the byte[] to Integer, rather left untouched until it's needed. However at that time we do need it we should get the correct value back.

Throws:
Exception

testLazyConversionNumber

public void testLazyConversionNumber()
                              throws Exception
Lazy conversion is used to read data from disk in a binary format. The data itself is not converted from the byte[] to Integer, rather left untouched until it's needed. However at that time we do need it we should get the correct value back.

Throws:
Exception

testLazyConversionBigNumber

public void testLazyConversionBigNumber()
                                 throws Exception
Lazy conversion is used to read data from disk in a binary format. The data itself is not converted from the byte[] to Integer, rather left untouched until it's needed. However at that time we do need it we should get the correct value back.

Throws:
Exception

testCompareIntegersNormalStorageData

public void testCompareIntegersNormalStorageData()
                                          throws Exception
Throws:
Exception

testCompareNumbersNormalStorageData

public void testCompareNumbersNormalStorageData()
                                         throws Exception
Throws:
Exception

testCompareBigNumberNormalStorageData

public void testCompareBigNumberNormalStorageData()
                                           throws Exception
Throws:
Exception

testCompareDatesNormalStorageData

public void testCompareDatesNormalStorageData()
                                       throws Exception
Throws:
Exception

testCompareBooleanNormalStorageData

public void testCompareBooleanNormalStorageData()
                                         throws Exception
Throws:
Exception

testCompareStringsNormalStorageData

public void testCompareStringsNormalStorageData()
                                         throws Exception
Throws:
Exception