Package org.d2junit.notifier

Examples of org.d2junit.notifier.D2JExcelNotifier


      DataUtil.dataMap = dataReader.loadData(file);
    }
    List<String> datas = DataUtil.dataMap.get(test.getClass().getName())
        .get(frameworkMethod.getName());
    for (int itr = 0; itr < datas.size(); itr++) {
      D2JExcelNotifier eachNotifier = djMakeNotifier(frameworkMethod,
          notifier, datas.get(itr));
      if (isTestMethodIgnored(frameworkMethod)) {
        eachNotifier.fireTestIgnored();
        return;
      }

      eachNotifier.fireTestStarted();
      try {

        methodBlock(frameworkMethod, itr).evaluate();

      } catch (AssumptionViolatedException e) {
        eachNotifier.addFailedAssumption(e);
      } catch (Throwable e) {
        eachNotifier.addFailure(e);
      } finally {
        eachNotifier.fireTestFinished();
      }
    }
   
    dataWriter = new ExcelDataWriter();
    dataWriter.writeData(file,DataUtil.resultMap);
View Full Code Here


   */
  private D2JExcelNotifier djMakeNotifier(FrameworkMethod method,
      RunNotifier notifier, String data) {
    Description description = describeChild(method, data);
    // Added for particular test case notification in excel
    return new D2JExcelNotifier(notifier, description);
  }
View Full Code Here

TOP

Related Classes of org.d2junit.notifier.D2JExcelNotifier

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.