org.alfresco.deployment.impl.fsr
Class FSRunnableTester
java.lang.Object
org.alfresco.deployment.impl.fsr.FSRunnableTester
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Runnable, FSDeploymentRunnable
public class FSRunnableTester
- extends java.lang.Object
- implements FSDeploymentRunnable
Test class for testing FSRunnables.
Sets a boolean flag to say that its been called.
Can throw an exception when told to do so.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSRunnableTester
public FSRunnableTester()
init
public void init(Deployment deployment)
- Description copied from interface:
FSDeploymentRunnable
- An initialization method.
- Specified by:
init
in interface FSDeploymentRunnable
- Parameters:
deployment
- The deployment that has just been committed.
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getDeployment
public Deployment getDeployment()
isRunCalled
public boolean isRunCalled()
setThrowException
public void setThrowException(boolean throwException)
isThrowException
public boolean isThrowException()
setRunCalled
public void setRunCalled(boolean runCalled)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.