APISonar


com.twosigma.beakerx.fileloader.CSV.CSV

> com > twosigma > beakerx > fileloader > CSV > CSV
com APIs twosigma APIs beakerx APIs fileloader APIs CSV APIs CSV APIs

Example 1
public void shouldContainTime() throws Exception {
    //given
    List<Map<String, Object>> data = new CSV().read(getOsAppropriatePath(getClass().getClassLoader(), TABLE_ROWS_TEST_CSV));
    TableDisplay tableDisplay = new TableDisplay(data);
    //when
    tableDisplay.display();
    //then
    assertThat(tableDisplay.getTypes()).contains(CSV.TIME_COLUMN);
    LinkedHashMap model = getModel();
    List values = (List) model.get(VALUES);
    List row0 = (List) values.get(0);
    Map date = (Map) row0.get(7);
    assertThat(date.get(DateSerializer.TYPE)).isEqualTo(DateSerializer.VALUE_DATE);
    assertThat(date.get(DateSerializer.TIMESTAMP)).isNotNull();
  }