FileDocCategorySizeDatePackage
TestRowRecordsAggregate.javaAPI DocApache Poi 3.0.11973Mon Jan 01 12:39:46 GMT 2007org.apache.poi.hssf.record.aggregates

TestRowRecordsAggregate

public class TestRowRecordsAggregate extends TestCase

Fields Summary
Constructors Summary
public TestRowRecordsAggregate(String name)

        super (name);
    
Methods Summary
public static voidmain(java.lang.String[] args)

        System.out
        .println("Testing org.apache.poi.hssf.record.aggregates.RowRecordAggregate");
        junit.textui.TestRunner.run(TestRowRecordsAggregate.class);
    
public voidtestRowGet()

        RowRecordsAggregate rra = new RowRecordsAggregate();
        RowRecord rr = new RowRecord();
        rr.setRowNumber(( short ) 4);
        rra.insertRow(rr);
        RowRecord rr2 = new RowRecord(); rr2.setRowNumber((short) 1);
        rra.insertRow(rr2);
        
        RowRecord rr1 = rra.getRow(4);
        
        assertTrue("Row Record should not be null", rr1!=null);
        assertTrue("Row number is 1",rr1.getRowNumber() == 4);
        assertTrue("Row record retrieved is identical ", rr1 == rr);