public class XmlValidationMatcher extends Object implements ValidationMatcher, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
XmlValidationMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Initialize xml message validator if not injected by Spring bean context.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Inject Spring bean application context
|
void |
validate(String fieldName,
String value,
List<String> controlParameters,
TestContext context)
Method called on validation.
|
public void validate(String fieldName, String value, List<String> controlParameters, TestContext context) throws ValidationException
validate
in interface ValidationMatcher
fieldName
- the fieldName for logging purpose.value
- the value to be validated.controlParameters
- the control parameters.ValidationException
- when validation failspublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
applicationContext
- org.springframework.beans.BeansException
Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.