Package javax.naming.ldap

Examples of javax.naming.ldap.LdapName


     * The expected result is false.
     * </p>
     */
    public void testStartsWithListOfRdn001() throws Exception {
        LinkedList<Rdn> test = null;
        assertFalse(new LdapName("t=test").startsWith(test));
    }
View Full Code Here


     */
    public void testStartsWithListOfRdn002() throws Exception {
        LinkedList<Rdn> test = new LinkedList<Rdn>();
        Rdn a = new Rdn("t=test");
        test.add(a);
        assertTrue(new LdapName("t=test").startsWith(test));
    }
View Full Code Here

     * The expected result is true.
     * </p>
     */
    public void testStartsWithListOfRdn003() throws Exception {
        LinkedList<Rdn> test = new LinkedList<Rdn>();
        assertTrue(new LdapName("t=test").startsWith(test));
    }
View Full Code Here

     * </p>
     */
    public void testStartsWithListOfRdn004() throws Exception {
        LinkedList<Rdn> test = new LinkedList<Rdn>();
        test.add(new Rdn("t=test"));
        assertFalse(new LdapName("").startsWith(test));
    }
View Full Code Here

     * The expected result is true.
     * </p>
     */
    public void testStartsWithListOfRdn005() throws Exception {
        LinkedList<Rdn> test = new LinkedList<Rdn>();
        assertTrue(new LdapName("").startsWith(test));
    }
View Full Code Here

        LinkedList<Rdn> test = new LinkedList<Rdn>();
        test.add(new Rdn("t=test"));
        test.add(new Rdn("t1=test"));
        test.add(new Rdn("t2=test"));
        test.add(new Rdn("t3=test"));
        assertTrue(new LdapName("t3=test,t2=test,t1=test,t=test")
                .startsWith(test));
    }
View Full Code Here

     * The expected result is a false.
     * </p>
     */
    public void testEndsWithName001() throws Exception {
        String test = "t=test";
        LdapName ln = new LdapName(test);
        LdapName t = null;
        assertFalse(ln.endsWith(t));
    }
View Full Code Here

     * The expected result is a true.
     * </p>
     */
    public void testEndsWithName002() throws Exception {
        String test = "t=test,cn=test";
        LdapName ln = new LdapName(test);
        LdapName n = new LdapName("t=test");
        assertTrue(ln.endsWith(n));
    }
View Full Code Here

     * The expected result is a true.
     * </p>
     */
    public void testEndsWithName003() throws Exception {
        String test = "t=test,cn=test";
        LdapName ln = new LdapName(test);
        LdapName n = new LdapName(test);
        assertTrue(ln.endsWith(n));
    }
View Full Code Here

     * <p>
     * The expected result is a true.
     * </p>
     */
    public void testEndsWithName004() throws Exception {
        LdapName ln = new LdapName("");
        LdapName n = new LdapName("");
        assertTrue(ln.endsWith(n));
    }
View Full Code Here

TOP

Related Classes of javax.naming.ldap.LdapName

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.