Package br.com.objectos.comuns.cnab

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


    int inicio = 221;
    int fim = 234;
    int tamanho = 14;
    Cnpj valor = Cnpj.valueOf(26337301000107l);

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

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


    int inicio = 4;
    int fim = 17;
    int tamanho = 14;
    Cpf valor = Cpf.valueOf(63455179762l);

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

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

  public void caso_cadastro_seja_null_lancar_excecao() {
    int inicio = 0;
    int fim = 0;
    Cpf valor = null;

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

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

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

TOP

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

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.