APISonar


org.pentaho.di.core.spreadsheet.KCellType.DATE

> org > pentaho > di > core > spreadsheet > KCellType > DATE
org APIs pentaho APIs di APIs core APIs spreadsheet APIs KCellType APIs DATE APIs

Example 1
public void testReadCells() throws Exception {
    KSheet sheet = getSampleSheet();

    KCell cell = sheet.getCell( 1, 2 );
    assertEquals( "One", cell.getValue() );
    assertEquals( KCellType.LABEL, cell.getType() );

    cell = sheet.getCell( 2, 2 );
    assertEquals( KCellType.DATE, cell.getType() );
    assertEquals( new Date( 1283817600000L ), cell.getValue() );

    cell = sheet.getCell( 1, 3 );
    assertEquals( "Two", cell.getValue() );
    assertEquals( KCellType.LABEL, cell.getType() );
  }