ContextRx { public boolean ketone() { return mealType == 0x06; } ContextRx(byte[] packet); boolean ketone(); boolean normalRecord(); String toString(); final ByteBuffer data; final byte flags; public byte secondaryFlags; public byte carbFlags; public int carbInfo; public int mealType; final int sequence; final boolean hasSecondaryFlags; final boolean hasMealType; final boolean hasCarbInfo; }
@Test public void ketoneTest() { ContextRx contextRx = new ContextRx(JoH.hexStringToByteArray("02040006")); assertTrue(contextRx.ketone()); }