@Test public void getServiceAuthority() { String auth = "example.com"; when(delegate.getServiceAuthority()).thenReturn(auth); assertEquals(auth, forwarder.getServiceAuthority()); }
@Override public String getServiceAuthority() { return delegate.getServiceAuthority(); }
ForwardingNameResolver extends NameResolver { @Override public String getServiceAuthority() { return delegate.getServiceAuthority(); } }
ForwardingNameResolver extends NameResolver { @Override public String getServiceAuthority() { return delegate.getServiceAuthority(); } ForwardingNameResolver(NameResolver delegate); }
ForwardingNameResolver extends NameResolver { @Override public String getServiceAuthority() { return delegate.getServiceAuthority(); } ForwardingNameResolver(NameResolver delegate); @Override String getServiceAuthority(); @Override void start(Listener listener); @Override void shutdown(); @Override void refresh(); @Override String toString(); }
ForwardingNameResolver extends NameResolver { @Override public String getServiceAuthority() { return delegate.getServiceAuthority(); } ForwardingNameResolver(NameResolver delegate); @Override String getServiceAuthority(); @Override void start(Listener listener); @Override void shutdown(); @Override void refresh(); @Override String toString();  }