예제 #1
0
  protected Suite(Class<?> klass, Class<?>[] annotatedClasses) throws InitializationError {
    // we need to add parent be
    super(klass.getName());

    addParent(klass);
    for (Class<?> each : annotatedClasses) {
      Runner childRunner = Request.aClass(each).getRunner();
      if (childRunner != null) add(childRunner);
    }
    removeParent(klass);

    fTestClass = new TestClass(klass);
    MethodValidator methodValidator = new MethodValidator(fTestClass);
    methodValidator.validateStaticMethods();
    methodValidator.assertValid();
  }
예제 #2
0
 protected void validate(MethodValidator methodValidator) {
   methodValidator.validateStaticMethods();
   methodValidator.validateInstanceMethods();
 }