List of usage examples for io.netty.channel ChannelPromise setSuccess
@Override ChannelPromise setSuccess(Void result);
From source file:com.linecorp.armeria.common.RequestContextTest.java
License:Apache License
@Test @SuppressWarnings("deprecation") public void makeContextAwareChannelFutureListener() { RequestContext context = createContext(); ChannelPromise promise = new DefaultChannelPromise(channel, ImmediateEventExecutor.INSTANCE); promise.addListener(context.makeContextAware((ChannelFutureListener) f -> { assertEquals(context, RequestContext.current()); assertTrue(entered.get());//from w w w . j av a2 s. c o m })); promise.setSuccess(null); }