Example #1
0
  public void run(STClass[] classes, STEngine[] engines, boolean a_quiet) {
    begin();
    setSodaTestOn(classes);

    for (int i = 0; i < engines.length; i++) {
      engine = engines[i];
      engine.reset();
      engine.open();
      store(classes);
      engine.commit();
      engine.close();
      engine.open();
      test(classes);
      engine.close();
      engine.reset();
    }

    if (failedTestClasses.size() > 0) {
      System.err.println("\nFailed test classes:\n");
      Iterator4 i = failedTestClasses.iterator();
      while (i.moveNext()) {
        System.err.println(i.current().getClass().getName());
      }
      System.err.println("\n");
    }
  }
Example #2
0
 protected void store(STClass[] classes) {
   for (int i = 0; i < classes.length; i++) {
     if (jdkOK(classes[i])) {
       Object[] objects = classes[i].store();
       if (objects != null) {
         for (int j = 0; j < objects.length; j++) {
           engine.store(objects[j]);
         }
       }
     }
   }
 }
Example #3
0
 public Query query() {
   return engine.query();
 }