Package siena.base.test.model

Examples of siena.base.test.model.Discovery4Search


    assertEquals(discs[2], res.get(0));
  }
 
  public void testSearchSingleFieldBeginSeveralResults() {
    Discovery4Search[] discs = new Discovery4Search[5];
    discs[0] = new Discovery4Search("alpha", LongAutoID_CURIE);
    discs[1] = new Discovery4Search("beta", LongAutoID_CURIE);
    discs[2] = new Discovery4Search("alphagamma", LongAutoID_CURIE);
    discs[3] = new Discovery4Search("delta", LongAutoID_CURIE);
    discs[4] = new Discovery4Search("eta", LongAutoID_CURIE);
    pm.insert((Object[])discs);   
   
    Query<Discovery4Search> query =
      pm.createQuery(Discovery4Search.class).search("alpha*", "name");
   
View Full Code Here


    assertEquals(discs[2], res.get(1));
  }
 
  public void testSearchSingleFieldBeginSeveralResultsKeysOnly() {
    Discovery4Search[] discs = new Discovery4Search[5];
    discs[0] = new Discovery4Search("alpha", LongAutoID_CURIE);
    discs[1] = new Discovery4Search("beta", LongAutoID_CURIE);
    discs[2] = new Discovery4Search("alphagamma", LongAutoID_CURIE);
    discs[3] = new Discovery4Search("delta", LongAutoID_CURIE);
    discs[4] = new Discovery4Search("eta", LongAutoID_CURIE);
    pm.insert((Object[])discs);   
   
    Query<Discovery4Search> query =
      pm.createQuery(Discovery4Search.class).search("alpha*", "name");
   
View Full Code Here

    assertTrue(res.get(1).isOnlyIdFilled());
  }
 
  public void testSearchSingleFieldBeginSeveralResultsCount() {
    Discovery4Search[] discs = new Discovery4Search[5];
    discs[0] = new Discovery4Search("alpha", LongAutoID_CURIE);
    discs[1] = new Discovery4Search("beta", LongAutoID_CURIE);
    discs[2] = new Discovery4Search("alphagamma", LongAutoID_CURIE);
    discs[3] = new Discovery4Search("delta", LongAutoID_CURIE);
    discs[4] = new Discovery4Search("eta", LongAutoID_CURIE);
    pm.insert((Object[])discs);   
   
    Query<Discovery4Search> query =
      pm.createQuery(Discovery4Search.class).search("alpha*", "name");
   
View Full Code Here

  }
 
  public void testSearchSingleFieldEndException() {
    Discovery4Search[] discs = new Discovery4Search[5];
    discs[0] = new Discovery4Search("alpha", LongAutoID_CURIE);
    discs[1] = new Discovery4Search("beta", LongAutoID_CURIE);
    discs[2] = new Discovery4Search("alphagamma", LongAutoID_CURIE);
    discs[3] = new Discovery4Search("delta", LongAutoID_CURIE);
    discs[4] = new Discovery4Search("eta", LongAutoID_CURIE);
    pm.insert((Object[])discs);     
    try {
      Query<Discovery4Search> query =
        pm.createQuery(Discovery4Search.class).search("*gamma", "name");
      query.fetch();
View Full Code Here

TOP

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

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.