@Test public void delegateDiscover() throws Exception { when(server.discover()).thenReturn(discovery); NomadEndpoint<String> namedServer = new NomadEndpoint<>(name, server); assertEquals(discovery, namedServer.discover()); }
@Override public DiscoverResponse<T> discover() throws NomadException { return server.discover(); }
NomadEndpoint implements NomadServer<T> { @Override public DiscoverResponse<T> discover() throws NomadException { return server.discover(); } }
NomadEndpoint implements NomadServer<T> { @Override public DiscoverResponse<T> discover() throws NomadException { return server.discover(); } NomadEndpoint(InetSocketAddress address, NomadServer<T> server); }
NomadEndpoint implements NomadServer<T> { @Override public DiscoverResponse<T> discover() throws NomadException { return server.discover(); } NomadEndpoint(InetSocketAddress address, NomadServer<T> server); InetSocketAddress getAddress(); @Override DiscoverResponse<T> discover(); @Override AcceptRejectResponse prepare(PrepareMessage message); @Override AcceptRejectResponse commit(CommitMessage message); @Override AcceptRejectResponse rollback(RollbackMessage message); @Override AcceptRejectResponse takeover(TakeoverMessage message); @Override void close(); @Override String toString(); }
NomadEndpoint implements NomadServer<T> { @Override public DiscoverResponse<T> discover() throws NomadException { return server.discover(); } NomadEndpoint(InetSocketAddress address, NomadServer<T> server); InetSocketAddress getAddress(); @Override DiscoverResponse<T> discover(); @Override AcceptRejectResponse prepare(PrepareMessage message); @Override AcceptRejectResponse commit(CommitMessage message); @Override AcceptRejectResponse rollback(RollbackMessage message); @Override AcceptRejectResponse takeover(TakeoverMessage message); @Override void close(); @Override String toString();  }