Exemplo n.º 1
0
 private AbstractQueryResult getAll(QueryEvaluationMode mode) {
   try {
     return file().getAll(transaction(), mode);
   } catch (Exception e) {
     if (Debug.atHome) {
       e.printStackTrace();
     }
   }
   return newQueryResult(mode);
 }
Exemplo n.º 2
0
 /** dynamic execution of all public methods that begin with "test" in all CLASSES */
 protected void test(STClass[] classes) {
   for (int i = 0; i < classes.length; i++) {
     if (jdkOK(classes[i])) {
       System.out.println("  S.O.D.A. testing " + classes[i].getClass().getName());
       currentTestClass = classes[i];
       Method[] methods = classes[i].getClass().getDeclaredMethods();
       for (int j = 0; j < methods.length; j++) {
         Method method = methods[j];
         if (method.getName().startsWith("test")) {
           try {
             method.invoke(classes[i], new Object[0]);
           } catch (Exception e) {
             e.printStackTrace();
           }
         }
       }
     }
   }
 }