Package siena.base.test.model

Examples of siena.base.test.model.Discovery4SearchStringId


public abstract class BaseTestNoAutoInc_8_SEARCH extends BaseTestNoAutoInc_BASE {

  public void testSearchSingle() {
    Discovery4SearchStringId[] discs = new Discovery4SearchStringId[100];
    for(int i=0; i<100; i++){
      discs[i] = new Discovery4SearchStringId("Disc_"+String.format("%03d", i), StringID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery4SearchStringId> query =
      pm.createQuery(Discovery4SearchStringId.class).search("Disc_005", "name");
View Full Code Here


  }
 
  public void testSearchSingleKeysOnly() {
    Discovery4SearchStringId[] discs = new Discovery4SearchStringId[100];
    for(int i=0; i<100; i++){
      discs[i] = new Discovery4SearchStringId("Disc_"+String.format("%03d", i), StringID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery4SearchStringId> query =
      pm.createQuery(Discovery4SearchStringId.class).search("Disc_005", "name");
View Full Code Here

  }
 
  public void testSearchSingleTwice() {
    Discovery4SearchStringId[] discs = new Discovery4SearchStringId[100];
    for(int i=0; i<100; i++){
      discs[i] = new Discovery4SearchStringId("Disc_"+String.format("%03d", i), StringID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery4SearchStringId> query =
      pm.createQuery(Discovery4SearchStringId.class).search("Disc_005", "name");
View Full Code Here

  }

  public void testSearchSingleCount() {
    Discovery4SearchStringId[] discs = new Discovery4SearchStringId[100];
    for(int i=0; i<100; i++){
      discs[i] = new Discovery4SearchStringId("Disc_"+String.format("%03d", i), StringID_CURIE);
    }
    pm.insert((Object[])discs);

    Query<Discovery4SearchStringId> query =
      pm.createQuery(Discovery4SearchStringId.class).search("Disc_005", "name");
View Full Code Here

 
  public void testSearchMultipleBegin() {
    if(supportsSearchStart()){
      Discovery4SearchStringId[] discs = new Discovery4SearchStringId[100];
      for(int i=0; i<100; i++){
        discs[i] = new Discovery4SearchStringId("Disc_"+String.format("%03d", i), StringID_CURIE);
      }
      pm.insert((Object[])discs);
 
      Query<Discovery4SearchStringId> query =
        pm.createQuery(Discovery4SearchStringId.class).search("Disc_01%", "name").order("name");
View Full Code Here

 
  public void testSearchMultipleEnd() {
    if(supportsSearchEnd()){
      Discovery4SearchStringId[] discs = new Discovery4SearchStringId[100];
      for(int i=0; i<100; i++){
        discs[i] = new Discovery4SearchStringId("Disc_"+String.format("%03d", i), StringID_CURIE);
      }
      pm.insert((Object[])discs);
 
      Query<Discovery4SearchStringId> query =
        pm.createQuery(Discovery4SearchStringId.class).search("%_005", "name").order("name");
View Full Code Here

 
  public void testSearchMultipleBeginEnd() {
    if(supportsSearchStart() && supportsSearchEnd()){
      Discovery4SearchStringId[] discs = new Discovery4SearchStringId[100];
      for(int i=0; i<100; i++){
        discs[i] = new Discovery4SearchStringId("Disc_"+String.format("%03d", i), StringID_CURIE);
      }
      pm.insert((Object[])discs);
 
      Query<Discovery4SearchStringId> query =
        pm.createQuery(Discovery4SearchStringId.class).search("%_01%", "name").order("name");
View Full Code Here

 
  public void testSearchMultipleMultipleWords() {
    if(supportsSearchStart() && supportsSearchEnd()){
      Discovery4SearchStringId[] discs = new Discovery4SearchStringId[100];
      for(int i=0; i<100; i++){
        discs[i] = new Discovery4SearchStringId("Disc_"+String.format("%03d", i), StringID_CURIE);
      }
      pm.insert((Object[])discs);
 
      Query<Discovery4SearchStringId> query =
        pm.createQuery(Discovery4SearchStringId.class).search("Disc_005 Disc_010 Disc_020", "name").order("name");
View Full Code Here

TOP

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

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.