Package org.apache.directory.shared.ldap.model.name

Examples of org.apache.directory.shared.ldap.model.name.Rdn.compareTo()


    {
        Rdn rdn1 = new Rdn( " a = f + g = h + c = d " );
        Rdn rdn2 = new Rdn( " c = d + a = h + g = h " );

        assertTrue( rdn1.compareTo( rdn2 ) < 0 );
        assertTrue( rdn2.compareTo( rdn1 ) > 0 );
        assertEquals( 0, rdn1.compareTo( rdn2 ) + rdn2.compareTo( rdn1 ) );
    }


    /**
 
View Full Code Here


        Rdn rdn1 = new Rdn( " a = f + g = h + c = d " );
        Rdn rdn2 = new Rdn( " c = d + a = h + g = h " );

        assertTrue( rdn1.compareTo( rdn2 ) < 0 );
        assertTrue( rdn2.compareTo( rdn1 ) > 0 );
        assertEquals( 0, rdn1.compareTo( rdn2 ) + rdn2.compareTo( rdn1 ) );
    }


    /**
     * Test for DIRSHARED-2.
View Full Code Here

    {
        // the second ATAV differs
        Rdn rdn1 = new Rdn( " a = b + c = d " );
        Rdn rdn2 = new Rdn( " a = b + c = y " );
        assertTrue( rdn1.compareTo( rdn2 ) < 0 );
        assertTrue( rdn2.compareTo( rdn1 ) > 0 );
        assertEquals( 0, rdn1.compareTo( rdn2 ) + rdn2.compareTo( rdn1 ) );

        // the third ATAV differs
        Rdn rdn3 = new Rdn( " a = b + c = d + e = f " );
        Rdn rdn4 = new Rdn( " a = b + c = d + e = y " );
View Full Code Here

        // the second ATAV differs
        Rdn rdn1 = new Rdn( " a = b + c = d " );
        Rdn rdn2 = new Rdn( " a = b + c = y " );
        assertTrue( rdn1.compareTo( rdn2 ) < 0 );
        assertTrue( rdn2.compareTo( rdn1 ) > 0 );
        assertEquals( 0, rdn1.compareTo( rdn2 ) + rdn2.compareTo( rdn1 ) );

        // the third ATAV differs
        Rdn rdn3 = new Rdn( " a = b + c = d + e = f " );
        Rdn rdn4 = new Rdn( " a = b + c = d + e = y " );
        assertTrue( rdn3.compareTo( rdn4 ) < 0 );
View Full Code Here

        // the third ATAV differs
        Rdn rdn3 = new Rdn( " a = b + c = d + e = f " );
        Rdn rdn4 = new Rdn( " a = b + c = d + e = y " );
        assertTrue( rdn3.compareTo( rdn4 ) < 0 );
        assertTrue( rdn4.compareTo( rdn3 ) > 0 );
        assertEquals( 0, rdn3.compareTo( rdn4 ) + rdn4.compareTo( rdn3 ) );

        // the second ATAV differs in value only
        Rdn rdn5 = new Rdn( " a = b + a = c " );
        Rdn rdn6 = new Rdn( " a = b + a = y " );
View Full Code Here

        // the third ATAV differs
        Rdn rdn3 = new Rdn( " a = b + c = d + e = f " );
        Rdn rdn4 = new Rdn( " a = b + c = d + e = y " );
        assertTrue( rdn3.compareTo( rdn4 ) < 0 );
        assertTrue( rdn4.compareTo( rdn3 ) > 0 );
        assertEquals( 0, rdn3.compareTo( rdn4 ) + rdn4.compareTo( rdn3 ) );

        // the second ATAV differs in value only
        Rdn rdn5 = new Rdn( " a = b + a = c " );
        Rdn rdn6 = new Rdn( " a = b + a = y " );
        assertTrue( rdn5.compareTo( rdn6 ) < 0 );
View Full Code Here

        // the second ATAV differs in value only
        Rdn rdn5 = new Rdn( " a = b + a = c " );
        Rdn rdn6 = new Rdn( " a = b + a = y " );
        assertTrue( rdn5.compareTo( rdn6 ) < 0 );
        assertTrue( rdn6.compareTo( rdn5 ) > 0 );
        assertEquals( 0, rdn5.compareTo( rdn6 ) + rdn6.compareTo( rdn5 ) );
    }


    /**
 
View Full Code Here

        // the second ATAV differs in value only
        Rdn rdn5 = new Rdn( " a = b + a = c " );
        Rdn rdn6 = new Rdn( " a = b + a = y " );
        assertTrue( rdn5.compareTo( rdn6 ) < 0 );
        assertTrue( rdn6.compareTo( rdn5 ) > 0 );
        assertEquals( 0, rdn5.compareTo( rdn6 ) + rdn6.compareTo( rdn5 ) );
    }


    /**
     * Test for DIRSHARED-2.
View Full Code Here

        assertEquals( 0, rdn1.compareTo( rdn2 ) );

        rdn1 = new Rdn( " a = b + c = e " );
        rdn2 = new Rdn( " c = d + a = b " );
        assertTrue( rdn1.compareTo( rdn2 ) > 0 );
        assertTrue( rdn2.compareTo( rdn1 ) < 0 );
        assertEquals( 0, rdn1.compareTo( rdn2 ) + rdn2.compareTo( rdn1 ) );

        rdn1 = new Rdn( " a = b + c = d " );
        rdn2 = new Rdn( " e = f + g = h " );
        assertTrue( rdn1.compareTo( rdn2 ) < 0 );
View Full Code Here

        rdn1 = new Rdn( " a = b + c = e " );
        rdn2 = new Rdn( " c = d + a = b " );
        assertTrue( rdn1.compareTo( rdn2 ) > 0 );
        assertTrue( rdn2.compareTo( rdn1 ) < 0 );
        assertEquals( 0, rdn1.compareTo( rdn2 ) + rdn2.compareTo( rdn1 ) );

        rdn1 = new Rdn( " a = b + c = d " );
        rdn2 = new Rdn( " e = f + g = h " );
        assertTrue( rdn1.compareTo( rdn2 ) < 0 );
        assertTrue( rdn2.compareTo( rdn1 ) > 0 );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.