org.mactor.framework.extensioninterface
Interface MessageBuilderCommand

All Known Implementing Classes:
ForwardingMessageBuilder, ForwardXslMessageBuilder, XPathTemplateMessageBuilder

public interface MessageBuilderCommand

The interface that must be must be implemented by message builder commands

From a testspec: <message-builder name="MyMessageBuilder" command="java:class that implements the MessageBuilderCommand interface"/>

Author:
Lars Ivar Almli

Method Summary
 Message buildMessage(TestContext context, java.lang.String templatePath, java.util.List<java.lang.String> params)
          The method invoked by the testrunner to build the message
 

Method Detail

buildMessage

Message buildMessage(TestContext context,
                     java.lang.String templatePath,
                     java.util.List<java.lang.String> params)
                     throws MactorException
The method invoked by the testrunner to build the message

Parameters:
context - contains information about the context of the test that might be useful (such as all messages sent/received so far in the test)
params - the list of parameteres specifed for the given node in the test-spec xml (after the ##{...} substitution has been performed)
Returns:
the built message
Throws:
MactorException - to indicate some problem (this will cause the test to fail)


Copyright © 2008. All Rights Reserved.