Package br.gov.component.demoiselle.common.pojo.helpers

Examples of br.gov.component.demoiselle.common.pojo.helpers.CPF


public class CPFTest {
 
  @Test
  public void testCreateCPF()
  {
    CPF cpf = new CPF();
   
    assertNotNull(cpf);
   
    assertTrue(cpf instanceof CPF);
  }
View Full Code Here


 
  @Test
  public void testConstructor()
  {
    // cpf gerado por programa externo (www.geradorcpf.com)   
    CPF cpf = new CPF("388.829.042-29");
   
    assertTrue(cpf.getCPFNumber().equals("38882904229"));
  }
View Full Code Here

 
  @Test
  public void testDV()
  {
    // cpf gerado por programa externo (www.geradorcpf.com)   
    CPF cpf = new CPF("08274987560");
   
    assertTrue(cpf.getDV().equals("0"))
   
  }
View Full Code Here

TOP

Related Classes of br.gov.component.demoiselle.common.pojo.helpers.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.