super(name);
SeriesIndexRecord record = new SeriesIndexRecord(new TestcaseRecordInputStream((short)0x1065, (short)data.length, data)); assertEquals( (short)3, record.getIndex()); assertEquals( 6, record.getRecordSize() ); record.validateSid((short)0x1065);
SeriesIndexRecord record = new SeriesIndexRecord(); record.setIndex( (short)3 ); 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]);