Package org.apache.harmony.jndi.provider.ldap.mock

Examples of org.apache.harmony.jndi.provider.ldap.mock.BindResponse


        Hashtable<Object, Object> env = new Hashtable<Object, Object>();
        env.put(Context.REFERRAL, "ignore");
        env.put("test.getRootURLContext", "GetRootURLContext");

        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_BIND_RESPONSE, new BindResponse(), null) });

        ResolveResult result = context.getRootURLContext(server.getURL(), env);

        assertEquals("", result.getRemainingName().toString());
        assertTrue(result.getResolvedObj() instanceof LdapContextImpl);
View Full Code Here


        initialEnv.put("test.getRootURLContext", "test");

        MockLdapURLContext context = new MockLdapURLContext(initialEnv);

        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_BIND_RESPONSE, new BindResponse(), null) });

        ResolveResult result = context.getRootURLContext(server.getURL(), null);

        assertEquals("", result.getRemainingName().toString());
        assertTrue(result.getResolvedObj() instanceof LdapContextImpl);
View Full Code Here

TOP

Related Classes of org.apache.harmony.jndi.provider.ldap.mock.BindResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.