Package br.com.objectos.way.boleto

Examples of br.com.objectos.way.boleto.NumeroBancario


public class TesteDeNumeroBancario {

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

    NumeroBancario res = new NumeroBancario(numero);

    assertThat(res.longValue(), equalTo(123l));
    assertThat(res.getDigito(), equalTo('4'));
  }
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));
  }
View Full Code Here

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void nao_numero() {
    String numero = "abc";

    new NumeroBancario(numero);
  }
View Full Code Here

TOP

Related Classes of br.com.objectos.way.boleto.NumeroBancario

Copyright © 2018 www.massapicom. 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.