Examples of ZeroBasedRowIterator


Examples of org.apache.metamodel.excel.ZeroBasedRowIterator

    // POI's row numbers are 0-based also - the last cell in the sheet is
    // actually A6.
    assertEquals(5, sheet.getLastRowNum());

    ZeroBasedRowIterator it = new ZeroBasedRowIterator(sheet);

    assertTrue(it.hasNext());
    assertNull(it.next());

    assertTrue(it.hasNext());
    assertNull(it.next());

    assertTrue(it.hasNext());
    assertNull(it.next());

    assertTrue(it.hasNext());
    assertNull(it.next());

    assertTrue(it.hasNext());
    assertNull(it.next());

    assertTrue(it.hasNext());
    assertNotNull(it.next());

    assertFalse(it.hasNext());
  }
View Full Code Here

Examples of org.apache.metamodel.excel.ZeroBasedRowIterator

    assertFalse(it.hasNext());
  }
 
  public void testUnsupportedRemove() throws Exception {
    ZeroBasedRowIterator it = new ZeroBasedRowIterator(EasyMock.createMock(Sheet.class));
   
    try {
      it.remove();
      fail("Exception expected");
    } catch (UnsupportedOperationException e) {
      assertEquals("remove() is not supported", e.getMessage());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.