org.mactor.framework.commandexecutors.java
Class JavaMessageSelectorCommandExecutor

java.lang.Object
  extended by org.mactor.framework.commandexecutors.java.JavaMessageSelectorCommandExecutor
All Implemented Interfaces:
MessageSelectorCommandExecutor, MessageSelectorCommand

public class JavaMessageSelectorCommandExecutor
extends java.lang.Object
implements MessageSelectorCommandExecutor


Constructor Summary
JavaMessageSelectorCommandExecutor(java.lang.String command, java.util.List<java.lang.String> params)
           
 
Method Summary
 boolean isAcceptableMessage(Message message)
          The method invoked by the testrunner to build the messgte.
 void setParams(java.util.List<java.lang.String> params)
          This method is ivoked by the test runner before selector is passed to the message broker during subscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMessageSelectorCommandExecutor

public JavaMessageSelectorCommandExecutor(java.lang.String command,
                                          java.util.List<java.lang.String> params)
Method Detail

setParams

public void setParams(java.util.List<java.lang.String> params)
               throws MactorException
Description copied from interface: MessageSelectorCommand
This method is ivoked by the test runner before selector is passed to the message broker during subscribe

Specified by:
setParams in interface MessageSelectorCommand
Parameters:
params - the list of parameteres specifed for the given node in the test-spec xml (after the ##{...} substitution has been performed)
Throws:
MactorException - if some problem occured (this will cause the test to fail)

isAcceptableMessage

public boolean isAcceptableMessage(Message message)
                            throws MactorException
Description copied from interface: MessageSelectorCommand
The method invoked by the testrunner to build the messgte.

Specified by:
isAcceptableMessage in interface MessageSelectorCommandExecutor
Specified by:
isAcceptableMessage in interface MessageSelectorCommand
Returns:
the built message
Throws:
MactorException - if some problem occured (this exception is logged and ignored)


Copyright © 2008. All Rights Reserved.