net.sf.farrago.test
Class FennelTupleTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sf.farrago.test.FennelTupleTest
All Implemented Interfaces:
Test

public class FennelTupleTest
extends TestCase

Set of unit tests which exercise the Java Tuple Library.

Since:
Dec 29, 2004
Version:
$Id: //open/dev/farrago/src/net/sf/farrago/test/FennelTupleTest.java#12 $
Author:
mbennett

Field Summary
private static String UNICODE_CHARSET
           
 
Constructor Summary
FennelTupleTest()
           
 
Method Summary
 void __testUnsuppliedThrows()
           
private  FennelTupleDescriptor buildDescriptor(FennelStandardTypeDescriptor[] types)
           
private  FennelTupleDescriptor buildDescriptor(FennelStandardTypeDescriptor[] types, boolean[] nullable, int[] sizes)
           
private  boolean compareObjects(Object[] before, Object[] after)
           
static void main(String[] args)
           
 ByteBuffer marshallValues(FennelTupleDescriptor desc, Object[] objs)
           
 ByteBuffer marshallValues(FennelTupleDescriptor desc, Object[] objs, ByteBuffer iBuff, FennelTupleAccessor a, FennelTupleData d)
           
static Test suite()
           
 void testBinaries()
           
 void testLargeVarBuffers()
           
 void testMinimal()
           
 void testMultipleMarshalling()
          test the ability to marshall multiple times using the same tupledescriptor, accessor and bytebuffer
 void testNullables()
           
 void testNumericMaximums()
           
 void testNumericMinimums()
           
 void testStrings()
           
 void testTupleAlignment()
           
 Object[] unmarshallValues(FennelTupleDescriptor desc, ByteBuffer iBuff)
           
 Object[] unmarshallValues(FennelTupleDescriptor desc, ByteBuffer iBuff, FennelTupleAccessor a, FennelTupleData d)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNICODE_CHARSET

private static final String UNICODE_CHARSET
Constructor Detail

FennelTupleTest

public FennelTupleTest()
Method Detail

buildDescriptor

private FennelTupleDescriptor buildDescriptor(FennelStandardTypeDescriptor[] types,
                                              boolean[] nullable,
                                              int[] sizes)

buildDescriptor

private FennelTupleDescriptor buildDescriptor(FennelStandardTypeDescriptor[] types)

compareObjects

private boolean compareObjects(Object[] before,
                               Object[] after)

marshallValues

public ByteBuffer marshallValues(FennelTupleDescriptor desc,
                                 Object[] objs,
                                 ByteBuffer iBuff,
                                 FennelTupleAccessor a,
                                 FennelTupleData d)
                          throws NullPointerException
Throws:
NullPointerException

marshallValues

public ByteBuffer marshallValues(FennelTupleDescriptor desc,
                                 Object[] objs)
                          throws NullPointerException
Throws:
NullPointerException

unmarshallValues

public Object[] unmarshallValues(FennelTupleDescriptor desc,
                                 ByteBuffer iBuff,
                                 FennelTupleAccessor a,
                                 FennelTupleData d)

unmarshallValues

public Object[] unmarshallValues(FennelTupleDescriptor desc,
                                 ByteBuffer iBuff)

testTupleAlignment

public void testTupleAlignment()

testMinimal

public void testMinimal()

testNumericMaximums

public void testNumericMaximums()

testNumericMinimums

public void testNumericMinimums()

testNullables

public void testNullables()

testStrings

public void testStrings()

testBinaries

public void testBinaries()

__testUnsuppliedThrows

public void __testUnsuppliedThrows()

testMultipleMarshalling

public void testMultipleMarshalling()
test the ability to marshall multiple times using the same tupledescriptor, accessor and bytebuffer


testLargeVarBuffers

public void testLargeVarBuffers()

suite

public static Test suite()

main

public static void main(String[] args)