@Override
  public void run(RunNotifier runNotifier) {
    runNotifier.fireTestRunStarted(topLevelDesc);
    for (SelfTest selfTest : selfTests) {
      for (SelfTestCase selfTestCase : selfTest.getSelfTestCases()) {
        Description currentDesc = createTestCaseDescription(selfTestCase);
        runNotifier.fireTestStarted(currentDesc);
        try {
          selfTest.runTest(selfTestCase);
        } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException
            | AssertionError e) {
          runNotifier.fireTestFailure(new Failure(currentDesc, e));
        }
        runNotifier.fireTestFinished(currentDesc);
      }
    }
    // TODO: Fill in the Result instance appropriately.
    runNotifier.fireTestRunFinished(new Result());
  }
@Override
  public void run(RunNotifier runNotifier) {
    runNotifier.fireTestRunStarted(topLevelDesc);
    for (SelfTest selfTest : selfTests) {
      for (SelfTestCase selfTestCase : selfTest.getSelfTestCases()) {
        Description currentDesc = createTestCaseDescription(selfTestCase);
        runNotifier.fireTestStarted(currentDesc);
        try {
          selfTest.runTest(selfTestCase);
        } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException
            | AssertionError e) {
          runNotifier.fireTestFailure(new Failure(currentDesc, e));
        }
        runNotifier.fireTestFinished(currentDesc);
      }
    }
   
    runNotifier.fireTestRunFinished(new Result());
  }
@override public void run(runnotifier runnotifier) { runnotifier.firetestrunstarted(topleveldesc); for (selftest selftest : selftests) { for (selftestcase selftestcase : selftest.getselftestcases()) { description currentdesc = createtestcasedescription(selftestcase); runnotifier.fireteststarted(currentdesc); try { selftest.runtest(selftestcase); } catch (illegalaccessexception | illegalargumentexception | invocationtargetexception | assertionerror e) { runnotifier.firetestfailure(new failure(currentdesc, e)); } runnotifier.firetestfinished(currentdesc); } } runnotifier.firetestrunfinished(new result()); }