Package org.javalite.activejdbc.associations

Examples of org.javalite.activejdbc.associations.BelongsToAssociation


        a(one).shouldNotBeEqual(three);
    }

    @Test
    public void testBelongsToEquals(){
        BelongsToAssociation one = new BelongsToAssociation("hello", "world", "hello_id");
        BelongsToAssociation two = new BelongsToAssociation("hello", "world", "hello_id");

        a(one).shouldBeEqual(two);

        BelongsToAssociation three = new BelongsToAssociation("hello", "world", "hi_id");
        a(one).shouldNotBeEqual(three);
    }
View Full Code Here

TOP

Related Classes of org.javalite.activejdbc.associations.BelongsToAssociation

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.