Package org.pluginbuilder.autotestsuite.junit4

Examples of org.pluginbuilder.autotestsuite.junit4.JUnit4Tests


    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


      mergeTestResult( autoTestRunner.run() );
    }
  }

  private void runAllJUnit4Tests() {
    JUnit4Tests jUnit4Tests = new JUnit4Tests();
    for (Bundle bundle : jUnit4Tests.findTestBundles()) {
      Collection<Class<?>> testClasses = jUnit4Tests.findTestClasses( bundle );
      if (testClasses.isEmpty()) {
        continue;
      }
      runFormatterTests( bundle, testClasses, "" );
    }
View Full Code Here

      runFormatterTests( bundle, testClasses, "" );
    }
  }

  private void runAllJUnit4TestsOnNonUIThread() {
    JUnit4Tests jUnit4Tests = new JUnit4Tests();
    for (Bundle bundle : jUnit4Tests.findTestBundles()) {
      Collection<Class<?>> testClasses = jUnit4Tests.findNonUIThreadTestClasses( bundle );
      if (testClasses.isEmpty()) {
        continue;
      }
      runFormatterTests( bundle, testClasses, "_swtbot" );
    }
View Full Code Here

  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

Related Classes of org.pluginbuilder.autotestsuite.junit4.JUnit4Tests

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.