Class KafkaFutureTest
java.lang.Object
org.apache.kafka.common.KafkaFutureTest
A unit test for KafkaFuture.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
KafkaFutureTest
public KafkaFutureTest()
-
-
Method Details
-
testCompleteFutures
-
testCompleteFuturesExceptionally
@Test public void testCompleteFuturesExceptionally() -
testCompleteFuturesViaCancellation
@Test public void testCompleteFuturesViaCancellation() -
testToString
@Test public void testToString() -
testCompletingFutures
-
testCompletingFuturesExceptionally
-
testCompletingFuturesViaCancellation
-
testThenApplyOnSucceededFuture
-
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
-
testWhenCompleteOnFailedFuture
@Test public void testWhenCompleteOnFailedFuture() -
testWhenCompleteOnSucceededFutureAndConsumerThrows
@Test public void testWhenCompleteOnSucceededFutureAndConsumerThrows() -
testWhenCompleteOnFailedFutureAndConsumerThrows
@Test public void testWhenCompleteOnFailedFutureAndConsumerThrows() -
testWhenCompleteOnCancelledFuture
@Test public void testWhenCompleteOnCancelledFuture() -
testAllOfFutures
-
testAllOfFuturesWithFailure
-
testAllOfFuturesHandlesZeroFutures
-
testFutureTimeoutWithZeroWait
@Test public void testFutureTimeoutWithZeroWait() -
testLeakCompletableFuture
-