@Test public void toByteExact_valueTooSmall() { assertThatThrownBy(() -> ByteUtil.toByteExact(-129)) .isInstanceOf(IllegalArgumentException.class) .hasMessageContaining("Supplied int value (-129) overflows byte"); }
public static byte toByteExact(final int value) throws IllegalArgumentException { return castToByteExact(value); }
ByteUtil { public static byte toByteExact(final int value) throws IllegalArgumentException { return castToByteExact(value); } }
ByteUtil { public static byte toByteExact(final int value) throws IllegalArgumentException { return castToByteExact(value); }  }
ByteUtil { public static byte toByteExact(final int value) throws IllegalArgumentException { return castToByteExact(value); }  static int toUnsignedInt(final byte value); static byte toByteExact(final int value); static byte toByteExactUnsigned(final int value); }
ByteUtil { public static byte toByteExact(final int value) throws IllegalArgumentException { return castToByteExact(value); }  static int toUnsignedInt(final byte value); static byte toByteExact(final int value); static byte toByteExactUnsigned(final int value);  }