org.unitils.objectvalidation
Interface Rule
- All Known Implementing Classes:
- ClassIsFinalRule, ClassMustBeSerializableRule, EqualsComplientRule, GetterAndSetterComplientRule, HashCodeComplientRule, NonMutatingToStringRule, NoPublicFieldsRule, OnlyStaticMethodsRule, PrivateConstructorRule, PublicEmptyConstructorRule, ToStringHasToBeOverridenRule, ToStringMustContainsEveryFieldRule
public interface Rule
Rules are to verify that a specific object is in phase with the way of thinking of a project.
It could be a rule to verify that the toString() method is immutable for instance.
Do your assertions like you would do in any other test.
- Since:
- Oct 8, 2013
- Author:
- Matthieu Mestrez
|
Method Summary |
void |
validate(Class<?> classToValidate)
Will run the validations on the java class passed in parameter. |
validate
void validate(Class<?> classToValidate)
- Will run the validations on the java class passed in parameter.
- Parameters:
classToValidate: - The class that must be validated.
Copyright © 2013-2015. All Rights Reserved.