org.unitils.objectvalidation.rules
Class NonMutatingToStringRule
java.lang.Object
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
|
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 |
NonMutatingToStringRule
public NonMutatingToStringRule(ObjectCreator randomFactory,
ObjectCloner objectCloner)
- Parameters:
randomFactory -
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.