@Test public void NoMiddlewareWithDelegate() { MiddlewareSet m = new MiddlewareSet(); wasCalled = false; BotCallbackHandler cb = (ctx) -> { wasCalled = true; return CompletableFuture.completedFuture(null); }; m.receiveActivityWithStatus(null, cb).join(); Assert.assertTrue("Delegate was not called", wasCalled); }
public CompletableFuture<Void> receiveActivityWithStatus( TurnContext context, BotCallbackHandler callback ) { return receiveActivityInternal(context, callback); }
MiddlewareSet implements Middleware { public CompletableFuture<Void> receiveActivityWithStatus( TurnContext context, BotCallbackHandler callback ) { return receiveActivityInternal(context, callback); } }
MiddlewareSet implements Middleware { public CompletableFuture<Void> receiveActivityWithStatus( TurnContext context, BotCallbackHandler callback ) { return receiveActivityInternal(context, callback); }  }
MiddlewareSet implements Middleware { public CompletableFuture<Void> receiveActivityWithStatus( TurnContext context, BotCallbackHandler callback ) { return receiveActivityInternal(context, callback); }  MiddlewareSet use(Middleware middleware); @Override CompletableFuture<Void> onTurn(TurnContext turnContext, NextDelegate next); CompletableFuture<Void> receiveActivityWithStatus(
        TurnContext context,
        BotCallbackHandler callback
    ); }
MiddlewareSet implements Middleware { public CompletableFuture<Void> receiveActivityWithStatus( TurnContext context, BotCallbackHandler callback ) { return receiveActivityInternal(context, callback); }  MiddlewareSet use(Middleware middleware); @Override CompletableFuture<Void> onTurn(TurnContext turnContext, NextDelegate next); CompletableFuture<Void> receiveActivityWithStatus(
        TurnContext context,
        BotCallbackHandler callback
    );  }