org.unitils.objectvalidation.Rule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unitils-objectvalidation Show documentation
Show all versions of unitils-objectvalidation Show documentation
Unitils module to validate objects.
package org.unitils.objectvalidation;
/**
* 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.
*
* @author Matthieu Mestrez
* @since Oct 8, 2013
*/
public interface Rule {
/**
* Will run the validations on the java class passed in parameter.
* @param classToValidate: The class that must be validated.
*/
void validate(Class> classToValidate);
}