use of com.sequenceiq.cloudbreak.domain.LdapConfig in project cloudbreak by hortonworks.
the class LdapConfigValidatorTest method testInvalidLdapConnection.
@Test
public void testInvalidLdapConnection() {
LdapConfig ldapConfig = TestUtil.ldapConfig();
ldapConfig.setProtocol("ldap://");
thrown.expect(BadRequestException.class);
thrown.expectMessage("Invalid name: /localhost:389");
underTest.validateLdapConnection(ldapConfig);
}
Aggregations