@Test public void test_uint8_t() throws IOException { for (Integer exp : expected_uint8) { UnsignedByte result = binFileReader.uint8_t(); assertEquals( "uint8_t " + Integer.toHexString(exp) + " asInt()", (Integer) Byte.toUnsignedInt(exp.byteValue()), result.asInt()); assertEquals( "uint8_t " + Integer.toHexString(exp) + " getSignedValue()", (Byte) exp.byteValue(), result.getSignedValue()); assertEquals( "uint8_t " + Integer.toHexString(exp) + " toString()", Integer.toString((((exp < 0 ? exp + 256 : exp)))), result.toString()); } }