Package siena.base.test.model

Examples of siena.base.test.model.EmbeddedContainerNative


    embed.javaEmbed.l = 123L;
    embed.nativeEmbed = new EmbeddedNative.SubEmbed();
    embed.nativeEmbed.str = "test";
    embed.nativeEmbed.l = 123L;
   
    EmbeddedContainerNative container = new EmbeddedContainerNative();
    container.id = "container";
    container.normal = "string";
    container.embed = embed;
    pm.save(container);
   
    EmbeddedContainerNative afterContainer = Model.getByKey(EmbeddedContainerNative.class, container.id);
    assertNotNull(afterContainer);
    assertEquals(container.id, afterContainer.id);
    assertEquals(container.normal, afterContainer.normal);
    assertNotNull(afterContainer.embed);
    assertEquals(embed.alpha, afterContainer.embed.alpha);
View Full Code Here


      embed.javaEmbed.l = 123L;
      embed.nativeEmbed = new EmbeddedNative.SubEmbed();
      embed.nativeEmbed.str = "subtest"+i;
      embed.nativeEmbed.l = 123L;
     
      EmbeddedContainerNative container = new EmbeddedContainerNative();
      container.id = "container"+i;
      container.normal = "string";
      container.embed = embed;
      pm.insert(container);
     
      containers.add(container);
    }
   
   
   
    EmbeddedContainerNative afterContainer = Model.all(EmbeddedContainerNative.class).filter("embed.alpha", "test56").get();
    assertNotNull(afterContainer);
    assertEquals(containers.get(56).id, afterContainer.id);
    assertEquals(containers.get(56).normal, afterContainer.normal);
    assertNotNull(afterContainer.embed);
    assertEquals(containers.get(56).embed.alpha, afterContainer.embed.alpha);
View Full Code Here

TOP

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

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.