Package siena.base.test.model

Examples of siena.base.test.model.SampleModel2


    mod.setPrivateField("PRIVATE_FIELD");
    mod.type = SampleModel.Type.FOO;
   
    mod.insert();
   
    SampleModel2 mod2 = new SampleModel2();
    mod2.relationship = mod;
    mod2.insert();
   
    List<SampleModel> res = SampleModel.all().fetch();
    for(SampleModel m: res){
      assertEquals(mod, m);
      List<SampleModel2> res2 = mod.links.fetch();
View Full Code Here


    mod.setPrivateField("PRIVATE_FIELD");
    mod.type = SampleModel.Type.FOO;
   
    mod.async().insert().get();
   
    SampleModel2 mod2 = new SampleModel2();
    mod2.relationship = mod;
    mod2.async().insert().get();
   
    List<SampleModel> res = SampleModel.all().fetch();
    for(SampleModel m: res){
      assertEquals(mod, m);
      List<SampleModel2> res2 = mod.links.fetch();
View Full Code Here

    mod.setPrivateField("PRIVATE_FIELD");
    mod.type = SampleModel.Type.FOO;
   
    mod.async().insert().get();
   
    SampleModel2 mod2 = new SampleModel2();
    mod2.relationship = mod;
    mod2.async().insert().get();
   
    SienaFuture<List<SampleModel>> future = SampleModel.all().async().fetch();
    List<SampleModel> res = future.get();
    for(SampleModel m: res){
      assertEquals(mod, m);
View Full Code Here

    mod.setPrivateField("PRIVATE_FIELD");
    mod.type = SampleModel.Type.FOO;
   
    mod.async().insert().get();
   
    SampleModel2 mod2 = new SampleModel2();
    mod2.relationship = mod;
    mod2.async().insert().get();
   
    SienaFuture<List<SampleModel>> future = SampleModel.all().async().fetch();
    List<SampleModel> res = future.get();
    for(SampleModel m: res){
      assertEquals(mod, m);
View Full Code Here

    mod.setPrivateField("PRIVATE_FIELD");
    mod.type = SampleModel.Type.FOO;
   
    mod.insert();
   
    SampleModel2 mods2[] = new SampleModel2[100];
    for(int i=0; i<100; i++){
      SampleModel2 mod2 = new SampleModel2();
      mod2.relationship = mod;
      mods2[i] = mod2;
      mod2.insert();     
    }
   
    List<SampleModel> res = SampleModel.all().fetch();
    for(SampleModel m: res){
      assertEquals(mod, m);
View Full Code Here

TOP

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

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.