FileDocCategorySizeDatePackage
TestSubRecord.javaAPI DocApache Poi 3.0.14503Mon Jan 01 12:39:46 GMT 2007org.apache.poi.hssf.record

TestSubRecord

public class TestSubRecord extends TestCase
Tests Subrecord components of an OBJ record. Test data taken directly from a real Excel file.
author
Michael Zalewski (zalewski@optonline.net)

Fields Summary
byte[]
dataAutoFilter
Constructors Summary
public TestSubRecord(String name)


        
    
        super( name );
    
Methods Summary
public voidtestParseAutoFilterLbsData()

//jmh        Record r = SubRecord.createSubRecord( (short) 0x0013, (short) 0x1fee, dataAutoFilter, 0x0032 );
//jmh        assertEquals( "ftLbsData is 20 bytes", 20, r.getRecordSize() );
    
public voidtestParseCmo()

//jmh        Record r = SubRecord.createSubRecord( (short) 0x0015, (short) 0x0012, dataAutoFilter, 0x0000 );
//jmh        assertEquals( "ftCmo is 22 bytes", 22, r.getRecordSize() );
//jmh        assertEquals( "ftCmo is a CommonObjectDataSubRecord"
//jmh                , "org.apache.poi.hssf.record.CommonObjectDataSubRecord"
//jmh                , r.getClass().getName() );
    
public voidtestParseEnd()

//jmh        Record r = SubRecord.createSubRecord( (short) 0x0000, (short) 0x0000, dataAutoFilter, 0x0046 );
//jmh        assertEquals( "ftEnd is 4 bytes", 4, r.getRecordSize() );
//jmh        assertEquals( "ftEnd is a EndSubRecord"
//jmh                , "org.apache.poi.hssf.record.EndSubRecord"
//jmh                , r.getClass().getName() );