@Override
  protected void runChild(FrameworkMethod method, RunNotifier notifier) {

    Description description = describeChild(method);
    if (method.getAnnotation(Ignore.class) != null) {
      notifier.fireTestIgnored(description);
      return;
    }

    notifier.fireTestStarted(description);
    String testClassName = getTestClass().getJavaClass().getName();
    String testName = description.getDisplayName();

    try {
      Document result = mClient.runAtServer(mContainerUrl, testClassName, testName);
      mClient.processResults(result);
    } catch (Throwable e) {
      notifier.fireTestFailure(new Failure(description, e));
    } finally {
      notifier.fireTestFinished(description);
    }
  }
@ Override protected void runChild ( FrameworkMethod method , RunNotifier notifier ) { Description description = describeChild ( method ) ; if ( method . getAnnotation ( Ignore . class ) != null ) { notifier . fireTestIgnored ( description ) ; return ; } notifier . fireTestStarted ( description ) ; String testClassName = getTestClass ( ) . getJavaClass ( ) . getName ( ) ; String testName = description . getDisplayName ( ) ; try { Document result = mClient . runAtServer ( mContainerUrl , testClassName , testName ) ; mClient . processResults ( result ) ; } catch ( Throwable e ) { notifier . fireTestFailure ( new Failure ( description , e ) ) ; } finally { notifier . fireTestFinished ( description ) ; } }
This method will be called for the set of methods annotated with
Before/Test/After.