Package br.com.objectos.way.base.br

Examples of br.com.objectos.way.base.br.Cpf


        { 79338874141l }, { 42688613863l }, { 11435452577l } };
  }

  @Test(dataProvider = "validos")
  public void is_valido(long val) {
    Cpf res = Cpf.valueOf(val);

    assertThat(res.isValido(), equalTo(true));
  }
View Full Code Here


    assertThat(res.isValido(), equalTo(true));
  }

  public void is_not_valido() {
    Cpf res = Cpf.valueOf(79338874142l);

    assertThat(res.isValido(), equalTo(false));
  }
View Full Code Here

        { "793.388.741-41" }, { "79338874141" }, { "793.388.741/41" }, { "793,388,741/41" } };
  }

  @Test(dataProvider = "parser")
  public void parse_valid(String val) {
    Cpf res = Cpf.parseCPF(val);

    assertThat(res.toString(), equalTo("793.388.741-41"));
  }
View Full Code Here

    assertTrue(false);
  }

  public void to_string() {
    Cpf res = Cpf.valueOf(79338874141l);

    assertThat(res.toString(), equalTo("793.388.741-41"));
  }
View Full Code Here

        { 79338874141l }, { 42688613863l }, { 11435452577l } };
  }

  @Test(dataProvider = "validos")
  public void is_valido(long val) {
    Cpf res = Cpf.valueOf(val);

    assertThat(res.isValido(), equalTo(true));
  }
View Full Code Here

    assertThat(res.isValido(), equalTo(true));
  }

  public void is_not_valido() {
    Cpf res = Cpf.valueOf(79338874142l);

    assertThat(res.isValido(), equalTo(false));
  }
View Full Code Here

        { "793.388.741-41" }, { "79338874141" }, { "793.388.741/41" }, { "793,388,741/41" } };
  }

  @Test(dataProvider = "parser")
  public void parse_valid(String val) {
    Cpf res = Cpf.parseCPF(val);

    assertThat(res.toString(), equalTo("793.388.741-41"));
  }
View Full Code Here

    assertTrue(false);
  }

  public void to_string() {
    Cpf res = Cpf.valueOf(79338874141l);

    assertThat(res.toString(), equalTo("793.388.741-41"));
  }
View Full Code Here

    assertThat(res.toString(), equalTo("793.388.741-41"));
  }

  public void to_tring_zero_complete() {
    Cpf res = Cpf.valueOf(1132972892l);

    assertThat(res.toString(), equalTo("011.329.728-92"));
  }
View Full Code Here

  public void deve_formatar_cpf() {
    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));
View Full Code Here

TOP

Related Classes of br.com.objectos.way.base.br.Cpf

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.