Package org.apache.harmony.jndi.tests.javax.naming.spi.mock.ldap

Examples of org.apache.harmony.jndi.tests.javax.naming.spi.mock.ldap.MockInitialLdapContext


                        "org.apache.harmony.jndi.tests.javax.naming.spi.mock.ldap.MockContextFactory");
        Control[] cs = {
                new MockControl("c1", false, new byte[] { 1, 2, 3, 4 }),
                new MockControl("c2", true, new byte[] { 'a', 'b', 'c', 'd' }), };
        MyInitialLdapContext x = new MyInitialLdapContext(env, cs);
        MockInitialLdapContext defaultCtx = (MockInitialLdapContext) x
                .getDefaultContext();
        Object objCs = defaultCtx.getProps().get(
                "java.naming.ldap.control.connect");
        Control[] cs2 = (Control[]) objCs;
        for (int i = 0; i < cs.length; i++) {
            assertEquals(cs2[i], cs[i]);
        }
View Full Code Here

TOP

Related Classes of org.apache.harmony.jndi.tests.javax.naming.spi.mock.ldap.MockInitialLdapContext

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.