Class AbstractCheckedFutureTest

    • Constructor Detail

      • AbstractCheckedFutureTest

        public AbstractCheckedFutureTest()
    • Method Detail

      • createCheckedFuture

        protected abstract <V> CheckedFuture<V,​?> createCheckedFuture​(V value,
                                                                            java.lang.Exception except,
                                                                            java.util.concurrent.CountDownLatch waitOn)
        More specific type for the create method.
      • checkCancelledException

        protected abstract void checkCancelledException​(java.lang.Exception e)
        Checks that the exception is the correct type of cancellation exception.
      • checkExecutionException

        protected abstract void checkExecutionException​(java.lang.Exception e)
        Checks that the exception is the correct type of execution exception.
      • checkInterruptedException

        protected abstract void checkInterruptedException​(java.lang.Exception e)
        Checks that the exception is the correct type of interruption exception.
      • testCheckedGetThrowsApplicationExceptionOnCancellation

        public void testCheckedGetThrowsApplicationExceptionOnCancellation()
        Tests that the CheckedFuture.checkedGet() method throws the correct type of cancellation exception when it is cancelled.
      • testCheckedGetThrowsApplicationExceptionOnInterruption

        public void testCheckedGetThrowsApplicationExceptionOnInterruption()
                                                                    throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • testCheckedGetThrowsApplicationExceptionOnError

        public void testCheckedGetThrowsApplicationExceptionOnError()