Package gw.test

Class TestExecutionManager

java.lang.Object
gw.test.TestExecutionManager

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

    • TestExecutionManager

      public TestExecutionManager()
  • Method Details

    • 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)
    • getEnvironment

      public TestEnvironment getEnvironment()
    • runTestClass

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

      protected TestClass maybeUnwrapTestClass(TestClass testClass)
    • runTestClassBare

      protected void runTestClassBare(TestClass testClass) throws Throwable
      Throws:
      Throwable
    • 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()