Class ConcurrentTestCase


  • public abstract class ConcurrentTestCase
    extends java.lang.Object
    Convenience support class, wrapping a Waiter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Waiter waiter  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void await()  
      protected void await​(long delay)  
      protected void await​(long delay, int expectedResumes)  
      protected void await​(long delay, java.util.concurrent.TimeUnit timeUnit)  
      protected void await​(long delay, java.util.concurrent.TimeUnit timeUnit, int expectedResumes)  
      protected void resume()  
      void rethrow​(java.lang.Throwable reason)  
      void threadAssertEquals​(java.lang.Object expected, java.lang.Object actual)  
      void threadAssertFalse​(boolean b)  
      void threadAssertNotNull​(java.lang.Object object)  
      void threadAssertNull​(java.lang.Object x)  
      void threadAssertTrue​(boolean b)  
      void threadFail()  
      void threadFail​(java.lang.String reason)  
      void threadFail​(java.lang.Throwable reason)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • waiter

        private final Waiter waiter
    • Constructor Detail

      • ConcurrentTestCase

        public ConcurrentTestCase()
    • Method Detail

      • threadFail

        public void threadFail​(java.lang.String reason)
        See Also:
        Waiter.fail(String)
      • await

        protected void await()
                      throws java.util.concurrent.TimeoutException,
                             java.lang.InterruptedException
        Throws:
        java.util.concurrent.TimeoutException
        java.lang.InterruptedException
        See Also:
        Waiter.await()
      • await

        protected void await​(long delay)
                      throws java.util.concurrent.TimeoutException,
                             java.lang.InterruptedException
        Throws:
        java.util.concurrent.TimeoutException
        java.lang.InterruptedException
        See Also:
        Waiter.await(long)
      • await

        protected void await​(long delay,
                             int expectedResumes)
                      throws java.util.concurrent.TimeoutException,
                             java.lang.InterruptedException
        Throws:
        java.util.concurrent.TimeoutException
        java.lang.InterruptedException
        See Also:
        Waiter.await(long, int)
      • await

        protected void await​(long delay,
                             java.util.concurrent.TimeUnit timeUnit)
                      throws java.util.concurrent.TimeoutException,
                             java.lang.InterruptedException
        Throws:
        java.util.concurrent.TimeoutException
        java.lang.InterruptedException
        See Also:
        Waiter.await(long, TimeUnit)
      • await

        protected void await​(long delay,
                             java.util.concurrent.TimeUnit timeUnit,
                             int expectedResumes)
                      throws java.util.concurrent.TimeoutException,
                             java.lang.InterruptedException
        Throws:
        java.util.concurrent.TimeoutException
        java.lang.InterruptedException
        See Also:
        Waiter.await(long, TimeUnit, int)