Пример #1
0
  public Collection<ExpTest> getAllExpTests() {
    List<ExpTest> expTests = new ArrayList<>(expTestLibrary.entries());

    if (parent != null) {
      expTests.addAll(parent.getAllExpTests());
    }

    return expTests;
  }
Пример #2
0
 public ExpTest getExpTest(String name) {
   ExpTest t = expTestLibrary.getExpTest(name);
   if (t != null) {
     return t;
   }
   if (parent != null) {
     return parent.getExpTest(name);
   }
   return null;
 }
Пример #3
0
 @SafeVarargs
 @SuppressWarnings("unchecked")
 public final void registerClasses(Class<? extends Importable>... classes) {
   for (Class<? extends Importable> c : classes) {
     if (ExpTest.class.isAssignableFrom(c)) {
       expTestLibrary.registerClasses((Class<? extends ExpTest>) c);
     } else if (Filter.class.isAssignableFrom(c)) {
       filterLibrary.registerClasses((Class<? extends Filter>) c);
     } else if (Tag.class.isAssignableFrom(c)) {
       tagLibrary.registerClasses((Class<? extends Tag>) c);
     }
   }
 }
Пример #4
0
 public void registerExpTest(ExpTest t) {
   expTestLibrary.addExpTest(t);
 }