Package org.javalite.activejdbc.associations

Examples of org.javalite.activejdbc.associations.OneToManyAssociation


*/
public class AssociationEqualityTest extends ActiveJDBCTest {

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

        a(one).shouldBeEqual(two);

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

TOP

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

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.