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

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


        Hashtable<String, String> temp = new Hashtable<String, String>();
        temp.put("mockkey", "mockobj");
        MockContext c = new MockContext(temp);
        Name n = new CompositeName("compositename");

        MockDirContext3 ctx = (MockDirContext3) DirectoryManager
                .getObjectInstance(r, n, c, env, a);

        boolean equals = ctx.parameterEquals(validFactoryAddr.getContent(), n,
                c, env, null); // it's NOT a!!
        assertTrue(equals);

        // test Referenceable
        MockReferenceable mr = new MockReferenceable(r);
        ctx = (MockDirContext3) DirectoryManager.getObjectInstance(mr, n, c,
                env, a);

        assertTrue(ctx.parameterEquals(validFactoryAddr.getContent(), n, c,
                env, null)); // it's NOT a!!
    }
View Full Code Here


      r.put("c", c);
    }
    if (null != h) {
      r.put("h", h);
    }
    return new MockDirContext3(r);

  }
View Full Code Here

      r.put("h", h);
    }
    if (null != a) {
      r.put("a", a);
    }
    return new MockDirContext3(r);
  }
View Full Code Here

TOP

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

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.