org.mactor.extensions
Class ForwardingMessageBuilder

java.lang.Object
  extended by org.mactor.extensions.ForwardingMessageBuilder
All Implemented Interfaces:
MessageBuilderCommand

public class ForwardingMessageBuilder
extends java.lang.Object
implements MessageBuilderCommand

Build a message identical to the last incoming message

Author:
Lars Ivar Almli

Constructor Summary
ForwardingMessageBuilder()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardingMessageBuilder

public ForwardingMessageBuilder()
Method Detail

buildMessage

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

Specified by:
buildMessage in interface MessageBuilderCommand
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.