Package br.com.objectos.comuns.cnab

Examples of br.com.objectos.comuns.cnab.ColunaCep


    int inicio = 0;
    int fim = 7;
    int tamanho = 8;
    Cep valor = Cep.valueOf(20260160);

    writer = new ColunaCep(inicio, fim).set(valor);
    String res = writer.get();

    assertThat(res.length(), equalTo(tamanho));
    assertThat(res, equalTo("20260160"));
  }
View Full Code Here


  public void deve_lancar_excecao_ao_receber_cep_invalido() {
    int inicio = 0;
    int fim = 0;
    Cep valor = Cep.valueOf("INVALIDO");

    writer = new ColunaCep(inicio, fim).set(valor);
    writer.get();
  }
View Full Code Here

  public void deve_lancar_excecao_ao_receber_cep_nulo() {
    int inicio = 0;
    int fim = 0;
    Cep valor = null;

    writer = new ColunaCep(inicio, fim).set(valor);
    writer.get();
  }
View Full Code Here

TOP

Related Classes of br.com.objectos.comuns.cnab.ColunaCep

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.