Package br.com.objectos.way.boleto

Examples of br.com.objectos.way.boleto.NumeroBancario.longValue()


  public void numero_com_digito() {
    String numero = "123-4";

    NumeroBancario res = new NumeroBancario(numero);

    assertThat(res.longValue(), equalTo(123l));
    assertThat(res.getDigito(), equalTo('4'));
  }

  public void numero_sem_digito() {
    String numero = "789";
View Full Code Here


  public void numero_sem_digito() {
    String numero = "789";

    NumeroBancario res = new NumeroBancario(numero);

    assertThat(res.longValue(), equalTo(789l));
    assertThat(res.getDigito(), equalTo((char) 0));
  }

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void nao_numero() {
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.