public class JSR303MockValidator extends MockValidator
Constructor and Description |
---|
JSR303MockValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(java.lang.Object bean,
java.lang.Class<?>... groups)
Validate an object using some Bean Validation engine.
|
void |
validateProperties(java.lang.Object bean,
java.lang.String... properties)
Validate the specifics propeties of an object using some Bean Validation engine.
|
add, addAll, checking, containsMessage, getErrors, hasErrors, onErrorUse
onErrorForwardTo, onErrorForwardTo, onErrorRedirectTo, onErrorRedirectTo, onErrorSendBadRequest, onErrorUsePageOf, onErrorUsePageOf
public void validate(java.lang.Object bean, java.lang.Class<?>... groups)
Validator
validate
in interface Validator
validate
in class MockValidator
bean
- The object to be validated.groups
- The groups to be validated.public void validateProperties(java.lang.Object bean, java.lang.String... properties)
Validator
validateProperties
in interface Validator
validateProperties
in class MockValidator
bean
- The object to be validated.properties
- The names of properties to be validated.Copyright © 2013 Caelum. All Rights Reserved.