Package gw.test
Class TestExecutionManager
java.lang.Object
gw.test.TestExecutionManager
The TestExecutionManager class is responsible for the actual execution of tests, including executing the before/after
hooks.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal longfinal booleanfinal booleanvoidprotected TestClassmaybeUnwrapTestClass(TestClass testClass) protected voidrunTestClass(TestClass testClass, junit.framework.TestResult result) protected voidrunTestClassBare(TestClass testClass) final booleanA convenience method for running this suite from a main method.voidsetAssertionsMustBeEnabled(boolean assertionsMustBeEnabled) voidsetEnvironment(TestEnvironment environment) voidsetSuiteTimeoutInMillis(long suiteTimeoutInMillis) voidsetTestsFromSuite(List<junit.framework.TestSuite> testWrappers)
-
Constructor Details
-
TestExecutionManager
public TestExecutionManager()
-
-
Method Details
-
setEnvironment
-
setTestsFromSuite
-
setSuiteTimeoutInMillis
public void setSuiteTimeoutInMillis(long suiteTimeoutInMillis) -
assertionsMustBeEnabled
public boolean assertionsMustBeEnabled() -
setAssertionsMustBeEnabled
public void setAssertionsMustBeEnabled(boolean assertionsMustBeEnabled) -
getEnvironment
-
runTestClass
-
maybeUnwrapTestClass
-
runTestClassBare
- 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()
-