use of de.danoeh.antennapod.parser.media.id3.model.FrameHeader in project AntennaPod by AntennaPod.
the class Id3ReaderTest method testReadFrameHeader.
@Test
public void testReadFrameHeader() throws IOException {
byte[] data = generateFrameHeader("CHAP", 42);
CountingInputStream inputStream = new CountingInputStream(new ByteArrayInputStream(data));
FrameHeader header = new ID3Reader(inputStream).readFrameHeader();
assertEquals("CHAP", header.getId());
assertEquals(42, header.getSize());
}
Aggregations