Package siena.base.test.model

Examples of siena.base.test.model.DiscoveryNoColumnMultipleKeys


    pm.insert(mk2);
   
    mk2.parent = mk1;
    pm.update(mk2);
   
    DiscoveryNoColumnMultipleKeys disc = new DiscoveryNoColumnMultipleKeys("disc1", mk1, mk2);
    pm.insert(disc);
   
    DiscoveryNoColumnMultipleKeys afterDisc = pm.getByKey(DiscoveryNoColumnMultipleKeys.class, disc.id);
    assertNotNull(afterDisc);
    assertEquals("disc1", afterDisc.name);
    assertEquals(mk1.id1, afterDisc.mk1.id1);
    assertEquals(mk1.id2, afterDisc.mk1.id2);
    assertEquals(mk2.id1, afterDisc.mk2.id1);
View Full Code Here


    pm.insert(mk2).get();
   
    mk2.parent = mk1;
    pm.update(mk2).get();
   
    DiscoveryNoColumnMultipleKeys disc = new DiscoveryNoColumnMultipleKeys("disc1", mk1, mk2);
    pm.insert(disc);
   
    DiscoveryNoColumnMultipleKeys afterDisc = pm.getByKey(DiscoveryNoColumnMultipleKeys.class, disc.id).get();
    assertNotNull(afterDisc);
    assertEquals("disc1", afterDisc.name);
    assertEquals(mk1.id1, afterDisc.mk1.id1);
    assertEquals(mk1.id2, afterDisc.mk1.id2);
    assertEquals(mk2.id1, afterDisc.mk2.id1);
View Full Code Here

TOP

Related Classes of siena.base.test.model.DiscoveryNoColumnMultipleKeys

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.