Package gov.nasa.pds.objectAccess.table
Class BitFieldAdapterTest
java.lang.Object
gov.nasa.pds.objectAccess.table.BitFieldAdapterTest
public class BitFieldAdapterTest extends Object
-
Constructor Summary
Constructors Constructor Description BitFieldAdapterTest() -
Method Summary
Modifier 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
-
BitFieldAdapterTest
public BitFieldAdapterTest()
-
-
Method Details
-
init
public void init() -
testIntegers
public void testIntegers(byte[] buf, int offset, int length, int startByte, int stopByte, long expectedValue) -
testGetString
public void testGetString() -
testByteOutOfRange
public void testByteOutOfRange(byte[] b) -
testShortOutOfRange
public void testShortOutOfRange(byte[] b) -
testIntegerOutOfRange
public void testIntegerOutOfRange(byte[] b) -
testNegativeStartBit
public void testNegativeStartBit() -
testStopBitTooLarge
public void testStopBitTooLarge() -
testFieldWiderThanLong
public void testFieldWiderThanLong() -
testBitFieldSpansMoreThanLong
public void testBitFieldSpansMoreThanLong() -
testRightmostBits
public void testRightmostBits(long value, int nBits, long expected) -
testSignedRightmostBits
public void testSignedRightmostBits(long value, int nBits, long expected) -
testGetbytesAsLong
public void testGetbytesAsLong(byte[] buf, int off, int len, int startByte, int stopByte, long expected)
-