super(name);
FontIndexRecord record = new FontIndexRecord(new TestcaseRecordInputStream((short)0x1026, (short)data.length, data)); assertEquals( 5, record.getFontIndex()); assertEquals( 6, record.getRecordSize() ); record.validateSid((short)0x1026);
FontIndexRecord record = new FontIndexRecord(); record.setFontIndex( (short)5 ); byte [] recordBytes = record.serialize(); assertEquals(recordBytes.length - 4, data.length); for (int i = 0; i < data.length; i++) assertEquals("At offset " + i, data[i], recordBytes[i+4]);