org.jboss.portal.test.framework.runner
Class BaseRunner

java.lang.Object
  extended by org.jboss.portal.test.framework.runner.BaseRunner
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
HTTPTestRunner, WebTestRunner

public class BaseRunner
extends java.lang.Object
implements junit.framework.Test

Version:
$Revision: 1.1 $
Author:
Julien Viet

Constructor Summary
BaseRunner(java.lang.String beansDescriptorLocation)
           
BaseRunner(java.lang.String beansDescriptorLocation, NodeId[] nodeIds)
           
 
Method Summary
 int countTestCases()
           
 void create()
           
protected  void deploy(java.net.URL url)
           
 void destroy()
           
 java.lang.String getArchivePath()
           
 Deployer getDeployer()
           
 NodeManager getNodeManager()
           
 RemoteTestDriverClient getTestDriverClient()
           
 void run(junit.framework.TestResult testResult)
           
 void setDeployer(Deployer deployer)
           
 void setNodeManager(NodeManager nodeManager)
           
 void setTestDriverClient(RemoteTestDriverClient testDriverClient)
           
 void start()
           
protected  void startRunner()
           
 void stop()
           
protected  void stopRunner()
           
protected  void undeploy(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseRunner

public BaseRunner(java.lang.String beansDescriptorLocation)

BaseRunner

public BaseRunner(java.lang.String beansDescriptorLocation,
                  NodeId[] nodeIds)
Method Detail

getArchivePath

public java.lang.String getArchivePath()

getDeployer

public Deployer getDeployer()

setDeployer

public void setDeployer(Deployer deployer)

getNodeManager

public NodeManager getNodeManager()

setNodeManager

public void setNodeManager(NodeManager nodeManager)

getTestDriverClient

public RemoteTestDriverClient getTestDriverClient()

setTestDriverClient

public void setTestDriverClient(RemoteTestDriverClient testDriverClient)

countTestCases

public int countTestCases()
Specified by:
countTestCases in interface junit.framework.Test

run

public void run(junit.framework.TestResult testResult)
Specified by:
run in interface junit.framework.Test

startRunner

protected void startRunner()
                    throws java.lang.Exception
Throws:
java.lang.Exception

stopRunner

protected void stopRunner()
                   throws java.lang.Exception
Throws:
java.lang.Exception

create

public final void create()
                  throws java.lang.Exception
Throws:
java.lang.Exception

start

public final void start()
                 throws java.lang.Exception
Throws:
java.lang.Exception

stop

public final void stop()

destroy

public final void destroy()

deploy

protected void deploy(java.net.URL url)
               throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

protected void undeploy(java.net.URL url)