org.alfresco.deployment.impl.fsr
Class FSRunnableTester

java.lang.Object
  extended by 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

Constructor Summary
FSRunnableTester()
           
 
Method Summary
 Deployment getDeployment()
           
 void init(Deployment deployment)
          An initialization method.
 boolean isRunCalled()
           
 boolean isThrowException()
           
 void run()
           
 void setRunCalled(boolean runCalled)
           
 void setThrowException(boolean throwException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSRunnableTester

public FSRunnableTester()
Method Detail

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.