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