org.unitils.objectvalidation.rulescollection
Class SunBeanRulesWithMocks

java.lang.Object
  extended by org.unitils.objectvalidation.rulescollection.SunBeanRulesWithMocks
All Implemented Interfaces:
ObjectValidationRulesCollection

public class SunBeanRulesWithMocks
extends Object
implements ObjectValidationRulesCollection

A set of default rules for the class validation. Checks that : 1. The equals is complient with the Sun rules : EqualsComplientRule 2. The hashCode is complient with the Sun rules : HashCodeComplientRule 3. The getters and setters are complient with the Sun rules : GetterAndSetterComplientRule 4. The class is serializable and contains the serialVersionUID field : ClassMustBeSerializableRule 6. There is a public empty constructor : PublicEmptyConstructorRule

Since:
Oct 10, 2013
Author:
Matthieu Mestrez

Field Summary
protected  ObjectCloner objectCloner
           
protected  ObjectCreator objectCreator
           
 
Constructor Summary
SunBeanRulesWithMocks()
           
 
Method Summary
 EqualsHashCodeValidator getEqualsHashCodeValidator()
           
 List<Rule> getRules()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectCreator

protected ObjectCreator objectCreator

objectCloner

protected ObjectCloner objectCloner
Constructor Detail

SunBeanRulesWithMocks

public SunBeanRulesWithMocks()
Method Detail

getRules

public List<Rule> getRules()
Specified by:
getRules in interface ObjectValidationRulesCollection

getEqualsHashCodeValidator

public EqualsHashCodeValidator getEqualsHashCodeValidator()
Specified by:
getEqualsHashCodeValidator in interface ObjectValidationRulesCollection


Copyright © 2013-2015. All Rights Reserved.