예제 #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();
  }
 protected void validate() throws InitializationError {
   MethodValidator methodValidator = new MethodValidator(m_testClass);
   // skip the validation bellow as we may have BundleContext as parameter
   // methodValidator.validateMethodsForDefaultRunner();
   methodValidator.assertValid();
 }