Package br.com.objectos.comuns.io

Examples of br.com.objectos.comuns.io.Line.column()


    Iterator<Line> iterator = arquivo.iterator();

    assertTrue(iterator.hasNext());

    Line linha = iterator.next();
    assertEquals(linha.column(1).get(String.class), "BR MALLS PARTICIPAÇOES S.A.");
  }

  public void verifiqueCp850() {
    InputStream inputStream = obterStream("CP_850.TXT");
View Full Code Here


    Iterator<Line> iterator = arquivo.iterator();

    assertTrue(iterator.hasNext());

    Line linha = iterator.next();
    assertEquals(linha.column(1).get(String.class), "BR MALLS PARTICIPAÇOES S.A.");
  }

  private InputStream obterStream(String nome) {
    ClassLoader classLoader = getClass().getClassLoader();
View Full Code Here

  }

  public void or_null() {
    Line l0 = lines.get(0);

    assertThat(l0.column(0).orNull(String.class), is(nullValue()));
  }

  public void or_instance() {
    Line l0 = lines.get(0);
View Full Code Here

  }

  public void or_instance() {
    Line l0 = lines.get(0);

    assertThat(l0.column(1).or(String.class, "default"), equalTo("default"));
  }

}
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.