Package javax.naming.ldap

Examples of javax.naming.ldap.Rdn


     * <p>
     * The expected result is a positive number.
     * </p>
     */
    public void testCompareTo002() throws Exception {
        Rdn rdn1 = new Rdn("t=test");
        Rdn rdn2 = new Rdn("");
        assertFalse(rdn1.compareTo(rdn2) <= 0);
    }
View Full Code Here


     * <p>
     * The expected result is a negative number.
     * </p>
     */
    public void testCompareTo003() throws Exception {
        Rdn rdn1 = new Rdn("");
        Rdn rdn2 = new Rdn("t=test");
        assertFalse(rdn1.compareTo(rdn2) >= 0);
    }
View Full Code Here

     * The expected result is a ClassCastException.
     * </p>
     */
    public void testCompareTo004() throws Exception {
        try {
            new Rdn("").compareTo(null);
            fail("ClassCastException expected");
        } catch (ClassCastException e) {}
    }
View Full Code Here

     * <p>
     * The expected result is a positive number.
     * </p>
     */
    public void testCompareTo005() throws Exception {
        Rdn rdn1 = new Rdn("t=test+m=test");
        Rdn rdn2 = new Rdn("t=test+m=");
        assertFalse(rdn1.compareTo(rdn2) <= 0);
    }
View Full Code Here

     * <p>
     * The expected result is a negative number.
     * </p>
     */
    public void testCompareTo006() throws Exception {
        Rdn rdn1 = new Rdn("t=test+m=");
        Rdn rdn2 = new Rdn("t=test+m=test");
        assertFalse(rdn1.compareTo(rdn2) >= 0);
    }
View Full Code Here

     * The expected result is a ClassCastException.
     * </p>
     */
    public void testCompareTo007() throws Exception {
        try {
            new Rdn("").compareTo(new Object());
            fail("ClassCastException expected");
        } catch (ClassCastException e) {}
    }
View Full Code Here

     * <p>
     * The expected result is a 0.
     * </p>
     */
    public void testCompareTo008() throws Exception {
        Rdn rdn1 = new Rdn("t=test");
        Rdn rdn2 = new Rdn("T=TEST");
        assertEquals(0, rdn1.compareTo(rdn2));
    }
View Full Code Here

     * <p>
     * The expected result is 0.
     * </p>
     */
    public void testCompareTo009() throws Exception {
        Rdn rdn1 = new Rdn("t=test+a=anything");
        Rdn rdn2 = new Rdn("A=ANYTHING+T=TEST");
        assertEquals(0, rdn1.compareTo(rdn2));
    }
View Full Code Here

     * <p>
     * The expected result is 0.
     * </p>
     */
    public void testCompareTo010() throws Exception {
        Rdn rdn1 = new Rdn("t=test+a=   anything+A=\\#080808<a+c=c=#0808");
        Rdn rdn2 = new Rdn("A=\\#080808<a+c=c=#0808+t=test+a=   anything");
        assertEquals(0, rdn1.compareTo(rdn2));
    }
View Full Code Here

                + "asd=asd=asd=asd=asd=asd=asd=Asd<asd<asd>asd>asd>asd+"
                + "a=<z>=at+a=<z>=at+a=<z>=at+a=<z>=at+a=>z<=at+a=>z<=at+a=>z<=at"
                + "+v================================+a=+a=+a=+a=+a=+a=+a=+a=+a=+a=+a=+a=+a="
                + "+a=+a=+a=+a=+a=+a=+a=+a=+a=+a=+a=+a========a+s=s<>ss+"
                + "A=\\#080808<a+c=c=#0808+t=test+a=   anything";
        Rdn rdn1 = new Rdn(x1);
        Rdn rdn2 = new Rdn(x2);
        assertEquals(0, rdn1.compareTo(rdn2));
    }
View Full Code Here

TOP

Related Classes of javax.naming.ldap.Rdn

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.