org.unitils.objectvalidation.rules
Class NonMutatingToStringRule

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

public class NonMutatingToStringRule
extends Object
implements Rule

This class checks if the toString() method of a cloned object stays the same or not.

Since:
1.1.6
Author:
Willemijn Wouters
See Also:
Object Validation module

Constructor Summary
NonMutatingToStringRule(ObjectCreator randomFactory, ObjectCloner objectCloner)
           
 
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

NonMutatingToStringRule

public NonMutatingToStringRule(ObjectCreator randomFactory,
                               ObjectCloner objectCloner)
Parameters:
randomFactory -
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
See Also:
Rule.validate(java.lang.Class)


Copyright © 2013-2015. All Rights Reserved.