@Test public void shouldReturnMaxConnectionsFromInstance() { ServerInstance mockInstance = mock(ServerInstance.class); ServerGroup mockGroup = mock(ServerGroup.class); ServerGroupConfiguration config = new ServerGroupConfiguration(mockGroup, mockInstance); config.getMaxConnections(); verify(mockInstance).getMaxConnections(); }
public int getMaxConnections() { return instance.getMaxConnections(); }
ServerGroupConfiguration { public int getMaxConnections() { return instance.getMaxConnections(); } }
ServerGroupConfiguration { public int getMaxConnections() { return instance.getMaxConnections(); } ServerGroupConfiguration(ServerGroup group, ServerInstance instance); }
ServerGroupConfiguration { public int getMaxConnections() { return instance.getMaxConnections(); } ServerGroupConfiguration(ServerGroup group, ServerInstance instance); String getBindDN(); char[] getBindPassword(); int getMaxConnections(); int getLdapHeartbeat(); Set<LDAPURL> getLDAPURLs(); }
ServerGroupConfiguration { public int getMaxConnections() { return instance.getMaxConnections(); } ServerGroupConfiguration(ServerGroup group, ServerInstance instance); String getBindDN(); char[] getBindPassword(); int getMaxConnections(); int getLdapHeartbeat(); Set<LDAPURL> getLDAPURLs();  }