Package gov.nasa.pds.objectAccess.table
Class IntegerBinaryFieldAdapterTest
- java.lang.Object
-
- gov.nasa.pds.objectAccess.table.IntegerBinaryFieldAdapterTest
-
public class IntegerBinaryFieldAdapterTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IntegerBinaryFieldAdapterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testBadDataLength()
void
testBadFieldLength()
void
testByteOutOfRange(byte[] b)
void
testGetSetBigEndian(boolean isSigned, java.lang.String stringValue, byte[] bytes)
void
testGetString()
void
testIntegerOutOfRange(byte[] b)
void
testMSB4(boolean isBigEndian, byte[] buf, int offset, int length, long expectedValue)
void
testMSB4BigEndian(boolean isSigned, java.lang.String stringValue, byte[] bytes)
void
testMSB4LittleEndian(boolean isSigned, java.lang.String stringValue, byte[] bytes)
void
testSetByte(boolean isBigEndian, long value, int offset, int length, byte[] b)
void
testSetDouble(boolean isBigEndian, long value, int offset, int length, byte[] b)
void
testSetFloat(boolean isBigEndian, long value, int offset, int length, byte[] b)
void
testSetInt(boolean isBigEndian, long value, int offset, int length, byte[] b)
void
testSetLong(boolean isBigEndian, long value, int offset, int length, byte[] b)
void
testSetShort(boolean isBigEndian, long value, int offset, int length, byte[] b)
void
testSetString()
void
testShortOutOfRange(byte[] b)
-
-
-
Method Detail
-
testMSB4
public void testMSB4(boolean isBigEndian, byte[] buf, int offset, int length, long expectedValue)
-
testGetString
public void testGetString()
-
testBadDataLength
public void testBadDataLength()
-
testByteOutOfRange
public void testByteOutOfRange(byte[] b)
-
testShortOutOfRange
public void testShortOutOfRange(byte[] b)
-
testIntegerOutOfRange
public void testIntegerOutOfRange(byte[] b)
-
testSetString
public void testSetString() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSetLong
public void testSetLong(boolean isBigEndian, long value, int offset, int length, byte[] b)
-
testSetDouble
public void testSetDouble(boolean isBigEndian, long value, int offset, int length, byte[] b)
-
testSetInt
public void testSetInt(boolean isBigEndian, long value, int offset, int length, byte[] b)
-
testSetFloat
public void testSetFloat(boolean isBigEndian, long value, int offset, int length, byte[] b)
-
testSetShort
public void testSetShort(boolean isBigEndian, long value, int offset, int length, byte[] b)
-
testSetByte
public void testSetByte(boolean isBigEndian, long value, int offset, int length, byte[] b)
-
testBadFieldLength
public void testBadFieldLength()
-
testMSB4BigEndian
public void testMSB4BigEndian(boolean isSigned, java.lang.String stringValue, byte[] bytes)
-
testMSB4LittleEndian
public void testMSB4LittleEndian(boolean isSigned, java.lang.String stringValue, byte[] bytes)
-
testGetSetBigEndian
public void testGetSetBigEndian(boolean isSigned, java.lang.String stringValue, byte[] bytes)
-
-