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(MethodValidator methodValidator) { methodValidator.validateStaticMethods(); methodValidator.validateInstanceMethods(); }