Package org.apache.harmony.jndi.tests.javax.naming.spi.NamingManagerTest

Examples of org.apache.harmony.jndi.tests.javax.naming.spi.NamingManagerTest.MockRefAddr


        Hashtable<String, String> env = new Hashtable<String, String>();
        env.put(Context.INITIAL_CONTEXT_FACTORY,
                "dazzle.jndi.testing.spi.DazzleContextFactory");
        env.put(Context.URL_PKG_PREFIXES, "org.apache.harmony.jndi.tests.javax.naming.spi.mock");
        Reference r = new Reference(null);
        MockRefAddr mockAddr = new MockRefAddr("URL", "dire://www.apache.org/");
        r.add(mockAddr);
        mockAddr = new MockRefAddr(null, "dire://www.apache.org/");
        r.add(mockAddr);
        Attributes a = new BasicAttributes();

        Object obj = DirectoryManager.getObjectInstance(r, new CompositeName(
                "compositename"), new MockContext(new Hashtable<String, String>()), env, a);
View Full Code Here


            env
                    .put(Context.URL_PKG_PREFIXES,
                            "org.apache.harmony.jndi.tests.javax.naming.spi.mock");

            Reference r = new Reference("");
            MockRefAddr mockAddr = new MockRefAddr("URL",
                    "dire://www.apache.org/");
            r.add(mockAddr);
            StringRefAddr notUrlTypeAddr = new StringRefAddr("uurl",
                    "dire://www.apache.org/");
            r.add(notUrlTypeAddr);
View Full Code Here

                            "org.apache.harmony.jndi.tests.javax.naming.spi.mock");
            env.put(Context.OBJECT_FACTORIES,
                    ":org.apache.harmony.jndi.tests.javax.naming.spi.mock.news.newsURLContextFactory");

            Reference r = new Reference("");
            MockRefAddr mockAddr = new MockRefAddr("URL",
                    "dire://www.apache.org/");
            r.add(mockAddr);
            StringRefAddr notUrlTypeAddr = new StringRefAddr("uurl",
                    "dire://www.apache.org/");
            r.add(notUrlTypeAddr);
View Full Code Here

                            Context.OBJECT_FACTORIES,
                            ":org.apache.harmony.jndi.tests.javax.naming.spi.mock.news.newsURLContextFactory"
                                    + ":org.apache.harmony.jndi.tests.javax.naming.spi.mock.MockDirObjectFactory");

            Reference r = new Reference("");
            MockRefAddr mockAddr = new MockRefAddr("URL",
                    "dire://www.apache.org/");
            r.add(mockAddr);
            StringRefAddr notUrlTypeAddr = new StringRefAddr("uurl",
                    "dire://www.apache.org/");
            r.add(notUrlTypeAddr);
View Full Code Here

TOP

Related Classes of org.apache.harmony.jndi.tests.javax.naming.spi.NamingManagerTest.MockRefAddr

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.