super(name);
UnitsRecord record = new UnitsRecord(new TestcaseRecordInputStream((short)0x1001, (short)data.length, data)); assertEquals( 0, record.getUnits()); assertEquals( 6, record.getRecordSize() ); record.validateSid((short)0x1001);
UnitsRecord record = new UnitsRecord(); record.setUnits( (short)0 ); 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]);