public class BitFieldAdapterTest extends Object
Constructor and Description |
---|
BitFieldAdapterTest() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
void |
testBitFieldSpansMoreThanLong() |
void |
testByteOutOfRange(byte[] b) |
void |
testFieldWiderThanLong() |
void |
testGetbytesAsLong(byte[] buf,
int off,
int len,
int startByte,
int stopByte,
long expected) |
void |
testGetString() |
void |
testIntegerOutOfRange(byte[] b) |
void |
testIntegers(byte[] buf,
int offset,
int length,
int startByte,
int stopByte,
long expectedValue) |
void |
testNegativeStartBit() |
void |
testRightmostBits(long value,
int nBits,
long expected) |
void |
testShortOutOfRange(byte[] b) |
void |
testSignedRightmostBits(long value,
int nBits,
long expected) |
void |
testStopBitTooLarge() |
public void init()
public void testIntegers(byte[] buf, int offset, int length, int startByte, int stopByte, long expectedValue)
public void testGetString()
public void testByteOutOfRange(byte[] b)
public void testShortOutOfRange(byte[] b)
public void testIntegerOutOfRange(byte[] b)
public void testNegativeStartBit()
public void testStopBitTooLarge()
public void testFieldWiderThanLong()
public void testBitFieldSpansMoreThanLong()
public void testRightmostBits(long value, int nBits, long expected)
public void testSignedRightmostBits(long value, int nBits, long expected)
public void testGetbytesAsLong(byte[] buf, int off, int len, int startByte, int stopByte, long expected)
Copyright © 2010–2018 Planetary Data System. All rights reserved.