assertFalse("No more messages", buff.nextMessage());
}
public void testTwoBlockOneData2Message() throws Exception {
DimeInputBuffer buff = messageBuffer(TestData.TWOBLOCKONEDATA2_MESSAGE);
assertTrue("Initial message", buff.nextMessage());
assertTrue("Initial part", buff.nextPart());
assertTrue("Missing data", buff.require(1));
assertEquals("Data value", 1, buff.getBuffer()[buff.getOffset()]);
assertFalse("No more parts in message", buff.nextPart());
assertFalse("No more messages", buff.nextMessage());