Package br.com.caelum.stella.example

Source Code of br.com.caelum.stella.example.SimpleExample

package br.com.caelum.stella.example;

import java.util.List;

import br.com.caelum.stella.ValidationMessage;
import br.com.caelum.stella.validation.CPFValidator;
import br.com.caelum.stella.validation.InvalidStateException;

public class SimpleExample {
  public static void main(String[] args) {
  String cpf = "867.554.707-24";
  for(ValidationMessage error : new CPFValidator().invalidMessagesFor(cpf)) {
    System.out.println(error.getMessage());
  }
 
  new CPFValidator().assertValid("867.554.707-24");
 
  }
}
TOP

Related Classes of br.com.caelum.stella.example.SimpleExample

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.