@Test public void testCloseDelegates() { @SuppressWarnings("unchecked") NameResolver<InetAddress> nameResolver = mock(NameResolver.class); InetSocketAddressResolver resolver = new InetSocketAddressResolver( ImmediateEventExecutor.INSTANCE, nameResolver); resolver.close(); verify(nameResolver, times(1)).close(); }
@Override public void close() { nameResolver.close(); }
InetSocketAddressResolver extends AbstractAddressResolver<InetSocketAddress> { @Override public void close() { nameResolver.close(); } }
InetSocketAddressResolver extends AbstractAddressResolver<InetSocketAddress> { @Override public void close() { nameResolver.close(); } InetSocketAddressResolver(EventExecutor executor, NameResolver<InetAddress> nameResolver); }
InetSocketAddressResolver extends AbstractAddressResolver<InetSocketAddress> { @Override public void close() { nameResolver.close(); } InetSocketAddressResolver(EventExecutor executor, NameResolver<InetAddress> nameResolver); @Override void close(); }
InetSocketAddressResolver extends AbstractAddressResolver<InetSocketAddress> { @Override public void close() { nameResolver.close(); } InetSocketAddressResolver(EventExecutor executor, NameResolver<InetAddress> nameResolver); @Override void close();  }