Examples of XmlJUnit4Formatter


Examples of org.pluginbuilder.autotestsuite.junit4.XmlJUnit4Formatter

  private void runFormatterTests(Bundle bundle, Collection<Class<?>> testClasses, String fileNameExtension) {
    String collectionName = bundle.getSymbolicName() + AUTO_TEST_SUITE_SUFFIX;

    List<JUnit4Formatter> formatters = new ArrayList<JUnit4Formatter>();
    File file = new File( resultsDirectory, bundle.getSymbolicName() + fileNameExtension + TEST_RESULT_EXTENSION );
    formatters.add( new XmlJUnit4Formatter( file ) );

    JUnit4TestRunner testRunner = new JUnit4TestRunner();
    boolean success = testRunner.runFormatterTests( collectionName, testClasses, formatters ).wasSuccessful();
    mergeTestResult( success ? AutoTestRunner.SUCCESS : AutoTestRunner.FAILURES );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.