Class JUnitTestRunner


  • public class JUnitTestRunner
    extends java.lang.Object

    Provides a runner utility for unit testing.

    Since:
    5.1.4
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.junit.runner.Result runTests​(AbstractJUnitTest junitTestInstance)
      Run unit test methods (annotated with Test) in junit test instance.
      static org.junit.runner.Result runTests​(java.lang.Class<?> junitTestClass)
      Run unit test methods (annotated with Test) in junit test class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • runTests

        public static org.junit.runner.Result runTests​(AbstractJUnitTest junitTestInstance)
        Run unit test methods (annotated with Test) in junit test instance.
        Parameters:
        junitTestInstance - junit test instance with unit test methods
        Returns:
        result with collected and summarized successful information from running multiple tests
      • runTests

        public static org.junit.runner.Result runTests​(java.lang.Class<?> junitTestClass)
        Run unit test methods (annotated with Test) in junit test class.
        Parameters:
        junitTestClass - junit test class with unit test methods
        Returns:
        result with collected and summarized information from running multiple tests