Examples of StellaCPFValidator


Examples of br.com.caelum.stella.bean.validation.logic.StellaCPFValidator

  }

  @Before
  public void createValidator() throws Exception {
    CPF cpfAnnotation = ObjectWithCPF.class.getDeclaredField("cpf").getAnnotation(CPF.class);
    validator = new StellaCPFValidator();
    validator.initialize(cpfAnnotation);
  }
View Full Code Here

Examples of br.com.caelum.stella.bean.validation.logic.StellaCPFValidator

  }
 
  @Test
  public void shouldValidateCPFWithRepeatedDigitsIfConfigured() throws Exception{
    CPF cpfAnnotation = ObjectWithCPFConfigured.class.getDeclaredField("cpf").getAnnotation(CPF.class);
    StellaCPFValidator anotherValidator = new StellaCPFValidator();
    anotherValidator.initialize(cpfAnnotation);
   
    boolean valid = anotherValidator.isValid("00000000000", context);
    assertTrue(valid);
  }
View Full Code Here

Examples of br.com.caelum.stella.faces.validation.StellaCPFValidator

  private static final String DEFAULT_CLASS = "stella-inputCpf";
  private static final String DEFAULT_MASK = "999.999.999-99";
 
  public InputCPF() {
    addValidator(new StellaCPFValidator(true));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.