/** * Gets the test methods. * * @return the test methods * @see patterntesting.runtime.junit.SmokeRunner#getTestMethods() */ @SuppressWarnings("unchecked") @Override protected List<FrameworkMethod> getTestMethods() { return (List<FrameworkMethod>) ReflectionHelper.invokeMethod(this.getDelegateRunner(), "getChildren"); }
/** * Run child. This method may be not called (e.g. it is not called by * SpringJUnit4ClassRunner) but must be implemented because of the abstract * superclass (ParentRunner). * * @param method * the method * @param notifier * the notifier * @see org.junit.runners.ParentRunner#runChild(java.lang.Object, * org.junit.runner.notification.RunNotifier) */ @Override protected void runChild(final FrameworkMethod method, final RunNotifier notifier) { Description description = describeChild(method); try { if (shouldBeIgnored(method)) { notifier.fireTestIgnored(description); return; } } catch (IllegalArgumentException iae) { fireTestAssumptionFailed(notifier, description, iae); notifier.fireTestFinished(description); return; } long startTime = System.currentTimeMillis(); ReflectionHelper.invokeMethod(delegateRunner, "runChild", method, notifier); logMethod(method, System.currentTimeMillis() - startTime); }