net.sf.farrago.test
Class FennelTupleTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
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
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 |
UNICODE_CHARSET
private static final String UNICODE_CHARSET
FennelTupleTest
public FennelTupleTest()
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)