]> source.dussan.org Git - poi.git/commitdiff
should have been submitted with c689559
authorJosh Micich <josh@apache.org>
Wed, 27 Aug 2008 21:54:20 +0000 (21:54 +0000)
committerJosh Micich <josh@apache.org>
Wed, 27 Aug 2008 21:54:20 +0000 (21:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@689636 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/record/aggregates/TestValueRecordsAggregate.java

index 3464c407d01e7784b4f4d4a22b1f8a4866218eab..d85b50a20cd18ae4cd749e963d83adb2bbf750bd 100755 (executable)
@@ -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(){
         List records = new ArrayList();
         FormulaRecord formulaRecord = new FormulaRecord();
-        UnknownRecord unknownRecord = new UnknownRecord();
         BlankRecord blankRecord = new BlankRecord();
         WindowOneRecord windowOneRecord = new WindowOneRecord();
         formulaRecord.setRow( 1 );
@@ -88,7 +74,6 @@ public class TestValueRecordsAggregate extends TestCase
         blankRecord.setRow( 2 );
         blankRecord.setColumn( (short) 2 );
         records.add( formulaRecord );
-        records.add( unknownRecord );
         records.add( blankRecord );
         records.add( windowOneRecord );
         return records;