Class KafkaFutureTest

java.lang.Object
org.apache.kafka.common.KafkaFutureTest

@Timeout(120L) public class KafkaFutureTest extends Object
A unit test for KafkaFuture.
  • Constructor Details

    • KafkaFutureTest

      public KafkaFutureTest()
  • Method Details

    • testCompleteFutures

      @Test public void testCompleteFutures() throws Exception
      Throws:
      Exception
    • testCompleteFuturesExceptionally

      @Test public void testCompleteFuturesExceptionally()
    • testCompleteFuturesViaCancellation

      @Test public void testCompleteFuturesViaCancellation()
    • testToString

      @Test public void testToString()
    • testCompletingFutures

      @Test public void testCompletingFutures() throws Exception
      Throws:
      Exception
    • testCompletingFuturesExceptionally

      @Test public void testCompletingFuturesExceptionally() throws Exception
      Throws:
      Exception
    • testCompletingFuturesViaCancellation

      @Test public void testCompletingFuturesViaCancellation() throws Exception
      Throws:
      Exception
    • testThenApplyOnSucceededFuture

      @Test public void testThenApplyOnSucceededFuture() throws Exception
      Throws:
      Exception
    • testThenApplyOnFailedFuture

      @Test public void testThenApplyOnFailedFuture()
    • testThenApplyOnFailedFutureTricky

      @Test public void testThenApplyOnFailedFutureTricky()
    • testThenApplyOnFailedFutureTricky2

      @Test public void testThenApplyOnFailedFutureTricky2()
    • testThenApplyOnSucceededFutureAndFunctionThrows

      @Test public void testThenApplyOnSucceededFutureAndFunctionThrows()
    • testThenApplyOnSucceededFutureAndFunctionThrowsCompletionException

      @Test public void testThenApplyOnSucceededFutureAndFunctionThrowsCompletionException()
    • testThenApplyOnFailedFutureFunctionNotCalled

      @Test public void testThenApplyOnFailedFutureFunctionNotCalled()
    • testThenApplyOnCancelledFuture

      @Test public void testThenApplyOnCancelledFuture()
    • testWhenCompleteOnSucceededFuture

      @Test public void testWhenCompleteOnSucceededFuture() throws Throwable
      Throws:
      Throwable
    • testWhenCompleteOnFailedFuture

      @Test public void testWhenCompleteOnFailedFuture()
    • testWhenCompleteOnSucceededFutureAndConsumerThrows

      @Test public void testWhenCompleteOnSucceededFutureAndConsumerThrows()
    • testWhenCompleteOnFailedFutureAndConsumerThrows

      @Test public void testWhenCompleteOnFailedFutureAndConsumerThrows()
    • testWhenCompleteOnCancelledFuture

      @Test public void testWhenCompleteOnCancelledFuture()
    • testAllOfFutures

      @Test public void testAllOfFutures() throws Exception
      Throws:
      Exception
    • testAllOfFuturesWithFailure

      @Test public void testAllOfFuturesWithFailure() throws Exception
      Throws:
      Exception
    • testAllOfFuturesHandlesZeroFutures

      @Test public void testAllOfFuturesHandlesZeroFutures() throws Exception
      Throws:
      Exception
    • testFutureTimeoutWithZeroWait

      @Test public void testFutureTimeoutWithZeroWait()
    • testLeakCompletableFuture

      @Test public void testLeakCompletableFuture() throws Throwable
      Throws:
      Throwable