com.atlassian.beehive
Class AbstractClusterLockServiceTckTest

java.lang.Object
  extended by com.atlassian.beehive.AbstractClusterLockServiceTckTest

public abstract class AbstractClusterLockServiceTckTest
extends Object

Generic tests that should be able to be run on any implementation of ClusterLockService as a Technology Compatibility Kit (TCK).


Nested Class Summary
protected  class AbstractClusterLockServiceTckTest.TestThread
          A test thread that encapsulates most of the logic associated with verifying cluster lock behaviour.
 
Field Summary
protected  ClusterLockService clusterLockService
           
 
Constructor Summary
AbstractClusterLockServiceTckTest()
           
 
Method Summary
protected abstract  ClusterLockService createClusterLockService()
           
protected  void runTestThreads(AbstractClusterLockServiceTckTest.TestThread... threads)
           
 void test_runWithLock_differentLockNames()
           
 void test_runWithLock_doInterrupt()
           
 void test_runWithLock_reentrancy()
           
 void test_runWithLock_sameLockNames()
           
 void test_runWithLockInterruptibly_doInterrupt()
           
 void test_tryRunWithLock_acquireLater()
           
 void test_tryRunWithLock_no_acquire()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clusterLockService

protected final ClusterLockService clusterLockService
Constructor Detail

AbstractClusterLockServiceTckTest

public AbstractClusterLockServiceTckTest()
Method Detail

createClusterLockService

protected abstract ClusterLockService createClusterLockService()

test_runWithLock_differentLockNames

public void test_runWithLock_differentLockNames()
                                         throws Exception
Throws:
Exception

test_runWithLock_reentrancy

public void test_runWithLock_reentrancy()
                                 throws Exception
Throws:
Exception

test_runWithLock_sameLockNames

public void test_runWithLock_sameLockNames()
                                    throws Exception
Throws:
Exception

test_runWithLock_doInterrupt

public void test_runWithLock_doInterrupt()
                                  throws Exception
Throws:
Exception

test_runWithLockInterruptibly_doInterrupt

public void test_runWithLockInterruptibly_doInterrupt()
                                               throws Exception
Throws:
Exception

test_tryRunWithLock_no_acquire

public void test_tryRunWithLock_no_acquire()
                                    throws Exception
Throws:
Exception

test_tryRunWithLock_acquireLater

public void test_tryRunWithLock_acquireLater()
                                      throws Exception
Throws:
Exception

runTestThreads

protected void runTestThreads(AbstractClusterLockServiceTckTest.TestThread... threads)
                       throws InterruptedException
Throws:
InterruptedException


Copyright © 2014 Atlassian. All Rights Reserved.