Package gw.test

Class TestExecutionManager


  • public class TestExecutionManager
    extends Object
    The TestExecutionManager class is responsible for the actual execution of tests, including executing the before/after hooks.
    • Constructor Detail

      • TestExecutionManager

        public TestExecutionManager()
    • Method Detail

      • setEnvironment

        public void setEnvironment​(TestEnvironment environment)
      • setTestsFromSuite

        public void setTestsFromSuite​(List<junit.framework.TestSuite> testWrappers)
      • setSuiteTimeoutInMillis

        public void setSuiteTimeoutInMillis​(long suiteTimeoutInMillis)
      • assertionsMustBeEnabled

        public boolean assertionsMustBeEnabled()
      • setAssertionsMustBeEnabled

        public void setAssertionsMustBeEnabled​(boolean assertionsMustBeEnabled)
      • runTestClass

        protected void runTestClass​(TestClass testClass,
                                    junit.framework.TestResult result)
      • maybeUnwrapTestClass

        protected TestClass maybeUnwrapTestClass​(TestClass testClass)
      • maybeInitTypeSystem

        public void maybeInitTypeSystem()
      • runViaStaticSuiteMethod

        public final boolean runViaStaticSuiteMethod()
        A convenience method for running this suite from a main method. Subclasses of Suite can create a main method like so:
           public static void main(String[] args) {
             System.exit( new GosuSuite().runSuite() ? 0 : 1 );
           }
         
        Returns:
        a boolean saying if all tests passed
      • hasTimeOut

        public final boolean hasTimeOut()
      • getTimeoutForCurrentTest

        public final long getTimeoutForCurrentTest()
      • hasTimedOut

        public final boolean hasTimedOut()