org.unitils.objectvalidation.rules
Class ToStringMustContainsEveryFieldRule

java.lang.Object
  extended by org.unitils.objectvalidation.rules.ToStringMustContainsEveryFieldRule
All Implemented Interfaces:
Rule

public class ToStringMustContainsEveryFieldRule
extends Object
implements Rule

Rule to check that the toString method returns a string with every field named in it.

Since:
Oct 24, 2013
Author:
Matthieu Mestrez

Constructor Summary
ToStringMustContainsEveryFieldRule(ObjectCreator objectCreator)
           
 
Method Summary
 void validate(Class<?> classToValidate)
          Will run the validations on the java class passed in parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToStringMustContainsEveryFieldRule

public ToStringMustContainsEveryFieldRule(ObjectCreator objectCreator)
Method Detail

validate

public void validate(Class<?> classToValidate)
Description copied from interface: Rule
Will run the validations on the java class passed in parameter.

Specified by:
validate in interface Rule


Copyright © 2013-2015. All Rights Reserved.