org.apache.ode.test
Class BPELTestAbstract

java.lang.Object
  extended by org.apache.ode.test.BPELTestAbstract

public abstract class BPELTestAbstract
extends java.lang.Object


Nested Class Summary
static class BPELTestAbstract.Deployment
          Represents a test deployement.
protected static class BPELTestAbstract.Failure
           
static class BPELTestAbstract.Invocation
          Represents an test invocation of the BPEL engine.
 
Field Summary
protected  BpelDAOConnectionFactory _cf
           
protected  java.util.List<BPELTestAbstract.Deployment> _deployments
          The things we'd like to deploy.
protected  java.util.List<BPELTestAbstract.Failure> _failures
          Failures that have been detected.
protected  java.util.List<BPELTestAbstract.Invocation> _invocations
          The things we'd like to invoke.
protected  BpelServerImpl _server
           
protected  javax.persistence.EntityManager em
           
protected  javax.persistence.EntityManagerFactory emf
           
protected  MessageExchangeContextImpl mexContext
           
protected  MockScheduler scheduler
           
protected  ProcessStore store
           
static long WAIT_BEFORE_INVOKE_TIMEOUT
           
 
Constructor Summary
BPELTestAbstract()
           
 
Method Summary
protected  BPELTestAbstract.Deployment addDeployment(java.io.File deployDir)
           
protected  BPELTestAbstract.Deployment addDeployment(java.lang.String deployDir)
           
protected  BPELTestAbstract.Invocation addInvoke(java.lang.String id, javax.xml.namespace.QName target, java.lang.String operation, java.lang.String request, java.lang.String responsePattern)
           
protected  void checkFailure()
           
protected  BPELTestAbstract.Deployment deploy(java.lang.String location)
           
protected  void doDeployment(BPELTestAbstract.Deployment d)
          Do all the registered deployments.
protected  void doDeployments()
           
protected  void doInvokes()
           
protected  void doUndeployments()
           
protected  java.util.Properties getConfigProperties()
          Override this to provide configuration properties for Ode extensions like BpelEventListeners.
protected  long getWaitBeforeInvokeTimeout()
           
protected  void go()
           
protected  void go(java.io.File deployDir)
           
protected  void go(java.lang.String deployDir)
           
protected  boolean isFailed()
           
protected  java.io.File makeDeployDir(java.lang.String deployDir)
           
protected  void negative(java.lang.String deployDir)
           
 void setUp()
           
protected  void setup(java.io.File deployDir)
           
 void tearDown()
           
protected  void undeploy(BPELTestAbstract.Deployment d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAIT_BEFORE_INVOKE_TIMEOUT

public static final long WAIT_BEFORE_INVOKE_TIMEOUT
See Also:
Constant Field Values

_server

protected BpelServerImpl _server

store

protected ProcessStore store

mexContext

protected MessageExchangeContextImpl mexContext

em

protected javax.persistence.EntityManager em

emf

protected javax.persistence.EntityManagerFactory emf

scheduler

protected MockScheduler scheduler

_cf

protected BpelDAOConnectionFactory _cf

_failures

protected java.util.List<BPELTestAbstract.Failure> _failures
Failures that have been detected.


_deployments

protected java.util.List<BPELTestAbstract.Deployment> _deployments
The things we'd like to deploy.


_invocations

protected java.util.List<BPELTestAbstract.Invocation> _invocations
The things we'd like to invoke.

Constructor Detail

BPELTestAbstract

public BPELTestAbstract()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Throws:
java.lang.Exception

negative

protected void negative(java.lang.String deployDir)
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

go

protected void go(java.lang.String deployDir)
           throws java.lang.Exception
Throws:
java.lang.Exception

addDeployment

protected BPELTestAbstract.Deployment addDeployment(java.lang.String deployDir)

addDeployment

protected BPELTestAbstract.Deployment addDeployment(java.io.File deployDir)

go

protected void go(java.io.File deployDir)
           throws java.lang.Exception
Throws:
java.lang.Exception

setup

protected void setup(java.io.File deployDir)
              throws java.lang.Exception
Throws:
java.lang.Exception

addInvoke

protected BPELTestAbstract.Invocation addInvoke(java.lang.String id,
                                                javax.xml.namespace.QName target,
                                                java.lang.String operation,
                                                java.lang.String request,
                                                java.lang.String responsePattern)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

go

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

checkFailure

protected void checkFailure()

deploy

protected BPELTestAbstract.Deployment deploy(java.lang.String location)

doDeployments

protected void doDeployments()

doDeployment

protected void doDeployment(BPELTestAbstract.Deployment d)
Do all the registered deployments.

Parameters:
d -

doUndeployments

protected void doUndeployments()

undeploy

protected void undeploy(BPELTestAbstract.Deployment d)

doInvokes

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

getWaitBeforeInvokeTimeout

protected long getWaitBeforeInvokeTimeout()

isFailed

protected boolean isFailed()

makeDeployDir

protected java.io.File makeDeployDir(java.lang.String deployDir)

getConfigProperties

protected java.util.Properties getConfigProperties()
Override this to provide configuration properties for Ode extensions like BpelEventListeners.

Returns: