Package uk.co.brunella.osgi.bdt.junit.runner.model

Examples of uk.co.brunella.osgi.bdt.junit.runner.model.TestRunNotifier


      }
    }
  }

  private void runTest(RunNotifier notifier, FrameworkMethod testMethod, int index) {
    TestRunNotifier testNotifier = new TestRunNotifier(notifier, methodDescription(testClass, testMethod, index));
    if (testMethod.getAnnotation(Ignore.class.getName()) != null) {
      testNotifier.fireTestIgnored();
    } else {
      testNotifier.fireTestStarted();
      try {
        FrameworkMethod osgiTestMethod = osgiTestClass.getTestMethod(testMethod.getName());
        makeTestStatement(osgiTestMethod).evaluate();
      } catch (AssumptionViolatedException e) {
        testNotifier.addFailedAssumption(e);
      } catch (Throwable e) {
        testNotifier.addFailure(e);
      } finally {
        testNotifier.fireTestFinished();
      }

    }
  }
View Full Code Here

TOP

Related Classes of uk.co.brunella.osgi.bdt.junit.runner.model.TestRunNotifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.