Package gov.nasa.pds.objectAccess.table
Class BitFieldAdapterTest
java.lang.Object
gov.nasa.pds.objectAccess.table.BitFieldAdapterTest
public class BitFieldAdapterTest extends Object
- 
Constructor SummaryConstructors Constructor Description BitFieldAdapterTest()
- 
Method SummaryModifier and Type Method Description voidinit()voidtestBitFieldSpansMoreThanLong()voidtestByteOutOfRange(byte[] b)voidtestFieldWiderThanLong()voidtestGetbytesAsLong(byte[] buf, int off, int len, int startByte, int stopByte, long expected)voidtestGetString()voidtestIntegerOutOfRange(byte[] b)voidtestIntegers(byte[] buf, int offset, int length, int startByte, int stopByte, long expectedValue)voidtestNegativeStartBit()voidtestRightmostBits(long value, int nBits, long expected)voidtestShortOutOfRange(byte[] b)voidtestSignedRightmostBits(long value, int nBits, long expected)voidtestStopBitTooLarge()
- 
Constructor Details- 
BitFieldAdapterTestpublic BitFieldAdapterTest()
 
- 
- 
Method Details- 
initpublic void init()
- 
testIntegerspublic void testIntegers(byte[] buf, int offset, int length, int startByte, int stopByte, long expectedValue)
- 
testGetStringpublic void testGetString()
- 
testByteOutOfRangepublic void testByteOutOfRange(byte[] b)
- 
testShortOutOfRangepublic void testShortOutOfRange(byte[] b)
- 
testIntegerOutOfRangepublic void testIntegerOutOfRange(byte[] b)
- 
testNegativeStartBitpublic void testNegativeStartBit()
- 
testStopBitTooLargepublic void testStopBitTooLarge()
- 
testFieldWiderThanLongpublic void testFieldWiderThanLong()
- 
testBitFieldSpansMoreThanLongpublic void testBitFieldSpansMoreThanLong()
- 
testRightmostBitspublic void testRightmostBits(long value, int nBits, long expected)
- 
testSignedRightmostBitspublic void testSignedRightmostBits(long value, int nBits, long expected)
- 
testGetbytesAsLongpublic void testGetbytesAsLong(byte[] buf, int off, int len, int startByte, int stopByte, long expected)
 
-