com.consol.citrus.validation.script
Class GroovyXmlMessageValidator
java.lang.Object
com.consol.citrus.validation.AbstractMessageValidator<ScriptValidationContext>
com.consol.citrus.validation.script.GroovyScriptMessageValidator
com.consol.citrus.validation.script.GroovyXmlMessageValidator
- All Implemented Interfaces:
- MessageValidator<ScriptValidationContext>
public class GroovyXmlMessageValidator
- extends GroovyScriptMessageValidator
Extended groovy message validator providing specific XML slurper support.
With XML slurper the tester can validate the message payload with closures and without having
to deal with XPath for instance.
- Author:
- Christoph Deppisch
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyXmlMessageValidator
public GroovyXmlMessageValidator()
- Default constructor using default script template.
supportsMessageType
public boolean supportsMessageType(String messageType)
- Checks if the message type is supported.
- Specified by:
supportsMessageType in interface MessageValidator<ScriptValidationContext>- Overrides:
supportsMessageType in class GroovyScriptMessageValidator
- Parameters:
messageType - the message type representation as String (e.g. xml, json, csv, plaintext).
- Returns:
- true if this message validator is capable of validating the message type.
Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.