assertEquals("Record type", DimeCommon.TYPE_MEDIA, buff.getPartTypeCode());
assertEquals("Record type text", "def", buff.getPartTypeText());
}
public void testOneBlockOneDataMessage() throws Exception {
DimeInputBuffer buff = messageBuffer(TestData.ONEBLOCKONEDATA_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());
}