use of com.iplanet.services.ldap.ServerInstance in project OpenAM by OpenRock.
the class ServerGroupConfigurationTest method shouldReturnBindDNFromInstance.
@Test
public void shouldReturnBindDNFromInstance() {
// Given
ServerInstance mockInstance = mock(ServerInstance.class);
ServerGroup mockGroup = mock(ServerGroup.class);
ServerGroupConfiguration config = new ServerGroupConfiguration(mockGroup, mockInstance);
// When
config.getBindDN();
// Then
verify(mockInstance).getAuthID();
}
use of com.iplanet.services.ldap.ServerInstance in project OpenAM by OpenRock.
the class ServerGroupConfigurationTest method shouldReturnMaxConnectionsFromInstance.
@Test
public void shouldReturnMaxConnectionsFromInstance() {
// Given
ServerInstance mockInstance = mock(ServerInstance.class);
ServerGroup mockGroup = mock(ServerGroup.class);
ServerGroupConfiguration config = new ServerGroupConfiguration(mockGroup, mockInstance);
// When
config.getMaxConnections();
// Then
verify(mockInstance).getMaxConnections();
}
Aggregations