Class MessageValidator
java.lang.Object
org.springframework.integration.test.support.AbstractResponseValidator<Message<?>>
org.springframework.integration.test.support.MessageValidator
- All Implemented Interfaces:
- MessageHandler
Validate a message. Create an anonymous instance or subclass to
 implement the validateMessage() method
- Author:
- David Turanski
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected final booleanIf true will extract the payload as the parameter for validateResponse()protected abstract voidvalidateMessage(Message<?> message) Implement this method to validate the messageprotected final voidvalidateResponse(Message<?> response) Implement this method to validate the response (Message or Payload)Methods inherited from class org.springframework.integration.test.support.AbstractResponseValidatorgetLastMessage, handleMessage
- 
Constructor Details- 
MessageValidatorpublic MessageValidator()
 
- 
- 
Method Details- 
extractPayloadprotected final boolean extractPayload()Description copied from class:AbstractResponseValidatorIf true will extract the payload as the parameter for validateResponse()- Specified by:
- extractPayloadin class- AbstractResponseValidator<Message<?>>
- Returns:
- true to extract the payload; false to process the message.
 
- 
validateResponseDescription copied from class:AbstractResponseValidatorImplement this method to validate the response (Message or Payload)- Specified by:
- validateResponsein class- AbstractResponseValidator<Message<?>>
- Parameters:
- response- The response.
 
- 
validateMessageImplement this method to validate the message- Parameters:
- message- The message.
 
 
-