@CreateTransport(protocol = "LDAP"), @CreateTransport(protocol = "LDAPS") })
private static Transport createTransport( CreateTransport transportBuilder, int startPort ) { String protocol = transportBuilder.protocol(); int port = transportBuilder.port(); int nbThreads = transportBuilder.nbThreads(); int backlog = transportBuilder.backlog(); String address = transportBuilder.address(); if ( port == -1 ) { port = AvailablePortFinder.getNextAvailable( startPort ); startPort = port + 1; } if ( protocol.equalsIgnoreCase( "TCP" ) ) { Transport tcp = new TcpTransport( address, port, nbThreads, backlog ); return tcp; } else if ( protocol.equalsIgnoreCase( "UDP" ) ) { UdpTransport udp = new UdpTransport( address, port ); return udp; } else { throw new IllegalArgumentException( I18n.err( I18n.ERR_689, protocol ) ); } }
/** * Create a new ManagedCreateTransport. * * @param createLdapServer */ public ManagedCreateTransport(final CreateTransport original) { protocol = original.protocol(); type = original.type(); port = original.port(); address = original.address(); backlog = original.backlog(); ssl = original.ssl(); nbThreads = original.nbThreads(); }
@CreateLdapServer(transports = { @CreateTransport(protocol = "LDAP", port = 7654) }) public class ApimanLdapServer extends AbstractLdapTestUnit {
private static List< Transport > createTransports( CreateTransport transportBuilder ) String protocol = transportBuilder.protocol(); int port = transportBuilder.port(); int nbThreads = transportBuilder.nbThreads(); int backlog = transportBuilder.backlog(); String address = transportBuilder.address();
@RunWith(FrameworkRunner.class) @CreateLdapServer(transports = {@CreateTransport(protocol = "LDAP", port = 1024)}) @ApplyLdifFiles("test.ldif") public class LDAPModuleRoleExpansionTest extends AbstractLdapTestUnit {
} else if (transportBuilders.length > 0) { for (CreateTransport transportBuilder : transportBuilders) { String protocol = transportBuilder.protocol(); int port = transportBuilder.port(); int nbThreads = transportBuilder.nbThreads(); int backlog = transportBuilder.backlog(); final String address = bindAddress != null ? bindAddress : transportBuilder.address();
@CreateLdapServer(transports = { @CreateTransport(protocol = "LDAP", port = 7654) }) public class LdapTestParent extends AbstractLdapTestUnit { @Rule
@RunWith(FrameworkRunner.class) @CreateLdapServer(transports = {@CreateTransport(protocol = "LDAP", port = 1024)}) @ApplyLdifFiles("test.ldif") public class LDAPLoginModuleMaskPasswordTest extends AbstractLdapTestUnit {
@RunWith(FrameworkRunner.class) @CreateLdapServer(transports = {@CreateTransport(protocol = "LDAP", port = 1024)}) @ApplyLdifFiles("test.ldif") public class LDAPLoginModuleTest extends AbstractLdapTestUnit {
@RunWith(FrameworkRunner.class) @CreateLdapServer(transports = {@CreateTransport(protocol = "LDAP", port = 1024)}) @ApplyLdifFiles("AMQauth2.ldif") public class LegacyLDAPSecuritySettingPluginTest2 extends AbstractLdapTestUnit {
@RunWith(FrameworkRunner.class) @CreateLdapServer(transports = {@CreateTransport(protocol = "LDAP", port = 1024)}) @ApplyLdifFiles("AMQauth.ldif") public class LegacyLDAPSecuritySettingPluginListenerTest extends AbstractLdapTestUnit {
@RunWith(FrameworkRunner.class) @CreateLdapServer(transports = {@CreateTransport(protocol = "LDAP", port = 1024)}) @ApplyLdifFiles("AMQauth.ldif") public class LegacyLDAPSecuritySettingPluginTest extends AbstractLdapTestUnit {
@RunWith(FrameworkRunner.class) @CreateLdapServer(transports = {@CreateTransport(protocol = "LDAP", port = 1024)}) @ApplyLdifFiles("test.ldif") public class LDAPSecurityTest extends AbstractLdapTestUnit {
transports = @CreateTransport(protocol = "LDAP", address= LDAP_SERVER_ADDR), }) @CreateDS(allowAnonAccess = true,
transports = @CreateTransport(protocol = "LDAP", address= LDAP_SERVER_ADDR), }) @CreateDS(allowAnonAccess = true,
transports = @CreateTransport(protocol = "LDAP", address = LDAP_SERVER_ADDR), }) @CreateDS(allowAnonAccess = true,
transports = @CreateTransport(protocol = "LDAP", address = LDAP_SERVER_ADDR), }) @CreateDS(allowAnonAccess = true,
@CreateLdapServer( transports = { @CreateTransport(protocol = "LDAP") }) public class JUnitLDAPTestWrapper extends AbstractLdapTestUnit
additionalInterceptors = { KeyDerivationInterceptor.class }) @CreateLdapServer(transports = {@CreateTransport(protocol = "LDAP", port = 1024)}, saslHost = "localhost", saslPrincipal = "ldap/localhost@EXAMPLE.COM", saslMechanisms = {@SaslMechanism(name = SupportedSaslMechanisms.GSSAPI, implClass = GssapiMechanismHandler.class)}) @CreateKdcServer(transports = {@CreateTransport(protocol = "TCP", port = 0)}) @ApplyLdifFiles("SaslKrb5LDAPSecurityTest.ldif") public class SaslKrb5LDAPSecurityTest extends AbstractLdapTestUnit {