JTR 5.0 API Documentation

jtr.runners
Class AbstractJMSRunner

java.lang.Object
  extended by jtr.runners.AbstractRunnerAncestor
      extended by jtr.runners.AbstractJMSRunner
All Implemented Interfaces:
java.lang.Runnable, IRunner, IRunnerClean, IRunnerJMS, IRunnerParameterized, IRunnerPooled

public abstract class AbstractJMSRunner
extends AbstractRunnerAncestor
implements IRunnerJMS

This abstract runner has to be the base class of all the application-level runners willing to leverage on the JTR runtime for the dynamic injection of JMS administered objects defined in the jtr.xml configuration file.

Since:
1.1
Version:
5.0
Author:
Francesco Russo (frusso@dev.java.net)

Field Summary
 
Fields inherited from class jtr.runners.AbstractRunnerAncestor
logger
 
Constructor Summary
AbstractJMSRunner()
           
 
Method Summary
 IRunnerClean clean()
          This method is invoked everytime an IRunner passes from its RUNNING state to the REQUIRES_NEW_PARAMETERS state.
The concrete IRunner implementation is responsible for its own clean-up.
 JMSConfig getJmsConfig()
          Get the JMS configuration assigned to the current IRunner
 void setJmsConfig(JMSConfig jmsConfig)
          Set the JMS configuration assigned to the current IRunner
protected  void specializedBeforeRunTest()
          This method allows more specialized subclasses to perform preparatory activities right before the actual test is launched.

Note: implementations of this method must always be final.
 
Methods inherited from class jtr.runners.AbstractRunnerAncestor
addMessage, afterTest, beforeTest, clean, enrichOutcome, getCurrentRun, getDefaultName, getEnterprise, getEpoch, getFailures, getFqn, getInstanceCount, getInstanceID, getName, getOutcomeFactory, getParameters, getParamsAssigner, getPool, getRuns, getSleepTime, getStatFunction, getSuccesses, getTestOutcomeTable, getUserMessage, handleFailure, run, setCurrentRun, setEnterprise, setEpoch, setFqn, setInstanceCount, setInstanceID, setName, setOutcomeFactory, setParameters, setParamsAssigner, setPool, setRuns, setSleepTime, setStatFunction, setTestCompletionListener, setTestOutcomeTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jtr.runners.IRunner
getFailures, getSuccesses, receiveFailureNotification, test
 
Methods inherited from interface jtr.runners.IRunnerPooled
afterTest, beforeTest, cleanupResources, getPool, run
 
Methods inherited from interface jtr.runners.IRunnerParameterized
setPool
 
Methods inherited from interface jtr.runners.IRunnerClean
getCurrentRun, getDefaultName, getEnterprise, getEpoch, getFqn, getInstanceCount, getInstanceID, getName, getOutcomeFactory, getParameters, getParamsAssigner, getRuns, getSleepTime, getStatFunction, getTestOutcomeTable, setCurrentRun, setEnterprise, setEpoch, setFqn, setInstanceCount, setInstanceID, setName, setOutcomeFactory, setParameters, setParamsAssigner, setRuns, setSleepTime, setStatFunction, setTestCompletionListener, setTestOutcomeTable
 

Constructor Detail

AbstractJMSRunner

public AbstractJMSRunner()
Method Detail

setJmsConfig

public void setJmsConfig(JMSConfig jmsConfig)
Set the JMS configuration assigned to the current IRunner

Specified by:
setJmsConfig in interface IRunnerJMS
Parameters:
jmsConfig - The JMS configuration

getJmsConfig

public JMSConfig getJmsConfig()
Get the JMS configuration assigned to the current IRunner

Specified by:
getJmsConfig in interface IRunnerJMS
Returns:
JMSConfig

specializedBeforeRunTest

protected final void specializedBeforeRunTest()
                                       throws java.lang.Throwable
Description copied from class: AbstractRunnerAncestor
This method allows more specialized subclasses to perform preparatory activities right before the actual test is launched.

Note: implementations of this method must always be final.

Specified by:
specializedBeforeRunTest in class AbstractRunnerAncestor
Throws:
java.lang.Throwable

clean

public IRunnerClean clean()
This method is invoked everytime an IRunner passes from its RUNNING state to the REQUIRES_NEW_PARAMETERS state.
The concrete IRunner implementation is responsible for its own clean-up.

Returns:
IRunnerClean

The JTR Project is licensed under GPL version 2