Package siena.base.test.model

Examples of siena.base.test.model.DiscoveryModel


   
    Batch<PersonLongAutoIDModel> batch = PersonLongAutoIDModel.batch();
    batch.insert(PERSON_LONGAUTOID_TESLA, PERSON_LONGAUTOID_CURIE, PERSON_LONGAUTOID_EINSTEIN);

    for(int i=0; i<200;i++){
      discs[i] = new DiscoveryModel("Disc_"+i, PERSON_LONGAUTOID_CURIE);
    }
    Batch<DiscoveryModel> batch2 = DiscoveryModel.batch();
    batch2.insert(discs);
  }
View Full Code Here


    }
   
    res = qd.nextPage().fetch();
    assertEquals(0, res.size());
   
    DiscoveryModel disc = new DiscoveryModel("Disc_201", PERSON_LONGAUTOID_CURIE);
    disc.insert();
   
    res = qd.fetch();
    assertEquals(1, res.size());
    assertEquals(disc, res.get(0));
   
View Full Code Here

    }
   
    res = qd.nextPage().fetch();
    assertEquals(0, res.size());
   
    DiscoveryModel disc = new DiscoveryModel("Disc_201", PERSON_LONGAUTOID_CURIE);
    disc.insert();
   
    res = qd.fetch();
    assertEquals(1, res.size());
    assertEquals(disc, res.get(0));
   
View Full Code Here

   
    future = qd.nextPage().fetch();
    res = future.get();
    assertEquals(0, res.size());
   
    DiscoveryModel disc = new DiscoveryModel("Disc_201", PERSON_LONGAUTOID_CURIE);
    disc.insert();
   
    future = qd.fetch();
    res = future.get();
    assertEquals(1, res.size());
    assertEquals(disc, res.get(0));
View Full Code Here

   
    future = qd.nextPage().fetch();
    res = future.get();
    assertEquals(0, res.size());
   
    DiscoveryModel disc = new DiscoveryModel("Disc_201", PERSON_LONGAUTOID_CURIE);
    disc.insert();
   
    future = qd.fetch();
    res = future.get();
    assertEquals(1, res.size());
    assertEquals(disc, res.get(0));
View Full Code Here

  }
 
  public void testFetchPaginateStatefulRealAsyncUpdateData() {
    QueryAsync<DiscoveryModel> qd = DiscoveryModel.all().stateful().async();
    SienaFuture<List<DiscoveryModel>> future = qd.paginate(200).fetch();
    DiscoveryModel disc = new DiscoveryModel("Disc_201", PERSON_LONGAUTOID_CURIE);
    SienaFuture<Void> futureDisc = disc.async().insert();
   
    List<DiscoveryModel> res = future.get();
    assertEquals(200, res.size());
    for(int i=0; i<200; i++){
      assertEquals(discs[i], res.get(i));
View Full Code Here

TOP

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

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.