Package br.com.objectos.way.boleto

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


public class TesteDeNossoNumero {

  public void numero() {
    String numero = "1234";

    NossoNumero res = new NossoNumero(numero);

    assertThat(res.longValue(), equalTo(123l));
    assertThat(res.getDigito(), equalTo('4'));
  }
View Full Code Here


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

    new NossoNumero(numero);
  }
View Full Code Here

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void nao_numero_hifen() {
    String numero = "123-4";

    new NossoNumero(numero);
  }
View Full Code Here

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

    new NossoNumero(numero);
  }
View Full Code Here

TOP

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

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.