net.bpelunit.framework.control.deploymentchanger.timemocking
Class TimeMocking

java.lang.Object
  extended by net.bpelunit.framework.control.deploymentchanger.timemocking.TimeMocking
All Implemented Interfaces:
IDeploymentChanger

public class TimeMocking
extends Object
implements IDeploymentChanger

Locking for mocking wait activities in BPEL. Can be added as a deployment component when BPELUnit deploys the PUT. Options configurable from test:

Author:
Daniel Luebke

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.bpelunit.framework.control.ext.IDeploymentChanger
IDeploymentChanger.DeploymentChangerOption
 
Constructor Summary
TimeMocking()
           
 
Method Summary
 void changeDeployment(IDeployment d, TestSuite testSuite)
          Executes the change to the deployment.
 void setActivityToMock(String xpath)
          See annotation for description
 void setBPELName(String bpelToChange)
          See annotation for description
 void setNewDuration(String newDurationInSeconds)
          See annotation for description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeMocking

public TimeMocking()
Method Detail

setActivityToMock

public void setActivityToMock(String xpath)
See annotation for description

Parameters:
xpath - see annotation for description

setNewDuration

public void setNewDuration(String newDurationInSeconds)
See annotation for description

Parameters:
xpath - see annotation for description

setBPELName

public void setBPELName(String bpelToChange)
See annotation for description

Parameters:
xpath - see annotation for description

changeDeployment

public void changeDeployment(IDeployment d,
                             TestSuite testSuite)
                      throws DeploymentException
Executes the change to the deployment. The option values have to be set before.

Specified by:
changeDeployment in interface IDeploymentChanger
Parameters:
d - the deployment that is to be changed
Throws:
DeploymentException


Copyright © 2013 Leibniz Universität Hannover. All Rights Reserved.