Package siena.base.test.model

Examples of siena.base.test.model.Discovery


  }
 
  public void testFilterWithOperatorINLotsOfEntitiesPaginateStateless() {
    Discovery[] discs = new Discovery[200];
    for(int i=0; i<200; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs).get();
   
    QueryAsync<Discovery> query =
      pm.createQuery(Discovery.class)
View Full Code Here


  }
 
  public void testFilterWithOperatorINLotsOfEntitiesPaginateStateful() {
    Discovery[] discs = new Discovery[200];
    for(int i=0; i<200; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs).get();
   
    QueryAsync<Discovery> query =
      pm.createQuery(Discovery.class)
View Full Code Here

 
 
  public void testFilterWithOperatorNotEqualLotsOfEntitiesStateful() {
    Discovery[] discs = new Discovery[200];
    for(int i=0; i<200; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs).get();
   
    QueryAsync<Discovery> query =
      pm.createQuery(Discovery.class)
View Full Code Here

  }
 
  public void testFilterWithOperatorNotEqualLotsOfEntitiesStateless() {
    Discovery[] discs = new Discovery[200];
    for(int i=0; i<200; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs).get();
   
    QueryAsync<Discovery> query =
      pm.createQuery(Discovery.class)
View Full Code Here

  }
 
  public void testFetchKeysPaginateStatefulPreviousPage() {
    Discovery[] discs = new Discovery[10];
    for(int i=0; i<10; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery> query = pm.createQuery(Discovery.class).paginate(5).stateful().order("name");
    List<Discovery> res = query.fetchKeys();
View Full Code Here

  }
 
  public void testFetchKeysPaginateStatefulSeveralTimes() {
    Discovery[] discs = new Discovery[15];
    for(int i=0; i<15; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery> query = pm.createQuery(Discovery.class).paginate(5).stateful().order("id");
    List<Discovery> res = query.fetchKeys();
View Full Code Here

  }
 
  public void testIterPaginateStatelessNextPage() {
    Discovery[] discs = new Discovery[10];
    for(int i=0; i<10; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery> query = pm.createQuery(Discovery.class).paginate(5).order("name");
    try {
View Full Code Here

  }

  public void testIterPaginateStatelessPreviousPageFromScratch() {
    Discovery[] discs = new Discovery[10];
    for(int i=0; i<10; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery> query = pm.createQuery(Discovery.class).paginate(5).order("name");
    Iterable<Discovery> iter = query.previousPage().iter();
View Full Code Here

  }
 
  public void testIterPaginateStatelessPreviousPage() {
    Discovery[] discs = new Discovery[10];
    for(int i=0; i<10; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery> query = pm.createQuery(Discovery.class).paginate(5).order("name");
    Iterable<Discovery> iter = query.nextPage().iter();
View Full Code Here

  }
 
  public void testIterPaginateStatelessPreviouPageSeveralTimes() {
    Discovery[] discs = new Discovery[15];
    for(int i=0; i<15; i++){
      discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery> query = pm.createQuery(Discovery.class).paginate(5).order("id");
    Iterable<Discovery> iter = query.iter();
View Full Code Here

TOP

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

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.