should have been submitted with c689559

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@689636 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Josh Micich 2008-08-27 21:54:20 +00:00
parent afad417d66
commit 12e76ef706

View File

@ -64,23 +64,9 @@ public class TestValueRecordsAggregate extends TestCase
} }
public void testUnknownRecordsIgnored()
{
List records = testData();
valueRecord.construct( 0, records );
Iterator iterator = valueRecord.getIterator();
Record record1 = (Record) iterator.next();
Record record2 = (Record) iterator.next();
assertNotNull( "No record found", record1 );
assertNotNull( "No record found", record2 );
assertFalse( iterator.hasNext() );
}
private List testData(){ private List testData(){
List records = new ArrayList(); List records = new ArrayList();
FormulaRecord formulaRecord = new FormulaRecord(); FormulaRecord formulaRecord = new FormulaRecord();
UnknownRecord unknownRecord = new UnknownRecord();
BlankRecord blankRecord = new BlankRecord(); BlankRecord blankRecord = new BlankRecord();
WindowOneRecord windowOneRecord = new WindowOneRecord(); WindowOneRecord windowOneRecord = new WindowOneRecord();
formulaRecord.setRow( 1 ); formulaRecord.setRow( 1 );
@ -88,7 +74,6 @@ public class TestValueRecordsAggregate extends TestCase
blankRecord.setRow( 2 ); blankRecord.setRow( 2 );
blankRecord.setColumn( (short) 2 ); blankRecord.setColumn( (short) 2 );
records.add( formulaRecord ); records.add( formulaRecord );
records.add( unknownRecord );
records.add( blankRecord ); records.add( blankRecord );
records.add( windowOneRecord ); records.add( windowOneRecord );
return records; return records;