Package siena.base.test.model

Examples of siena.base.test.model.EmbeddedContainerModelJava


    embed2.alpha = "test2";
    embed2.beta = 1234;
    embed2.setGamma(true);
    pm.insert(embed2);
   
    EmbeddedContainerModelJava container = new EmbeddedContainerModelJava();
    container.id = "container";
    container.embed = embed;
    container.embeds = new ArrayList<EmbeddedModel>();
    container.embeds.add(embed);
    container.embeds.add(embed2);
    pm.insert(container);

    EmbeddedContainerModelJava afterContainer = pm.getByKey(EmbeddedContainerModelJava.class, container.id);
    assertNotNull(afterContainer);
    assertEquals(container.id, afterContainer.id);
    assertNotNull(afterContainer.embed);
    assertEquals(embed.id, afterContainer.embed.id);
   
View Full Code Here

TOP

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

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.