com.consol.citrus.validation.script
Class GroovyXmlMessageValidator

java.lang.Object
  extended by com.consol.citrus.validation.AbstractMessageValidator<ScriptValidationContext>
      extended by com.consol.citrus.validation.script.GroovyScriptMessageValidator
          extended by 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

Constructor Summary
GroovyXmlMessageValidator()
          Default constructor using default script template.
 
Method Summary
 boolean supportsMessageType(String messageType)
          Checks if the message type is supported.
 
Methods inherited from class com.consol.citrus.validation.script.GroovyScriptMessageValidator
findValidationContext, validateMessage
 
Methods inherited from class com.consol.citrus.validation.AbstractMessageValidator
validateMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyXmlMessageValidator

public GroovyXmlMessageValidator()
Default constructor using default script template.

Method Detail

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.