Package mondrian.test
Class MondrianTestRunner
- java.lang.Object
-
- BaseTestRunner
-
- mondrian.test.MondrianTestRunner
-
public class MondrianTestRunner extends BaseTestRunner
-
-
Field Summary
Fields Modifier and Type Field Description static intEXCEPTION_EXITstatic intFAILURE_EXITstatic intSUCCESS_EXIT
-
Constructor Summary
Constructors Constructor Description MondrianTestRunner()Constructs a TestRunner.MondrianTestRunner(PrintStream writer)Constructs a TestRunner using the given stream for all the outputMondrianTestRunner(MondrianResultPrinter printer)Constructs a TestRunner using the given ResultPrinter all the output
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TestResultcreateTestResult()Creates the TestResult to be used for the test run.TestResultdoRun(Test suite)intgetIterations()TestSuiteLoadergetLoader()Always use the StandardTestSuiteLoader.intgetTimeLimit()intgetVUsers()protected voidrunFailed(String message)voidsetIterations(int fIterations)voidsetPrinter(MondrianResultPrinter printer)voidsetTimeLimit(int fTimeLimit)voidsetVUsers(int fVUsers)voidtestEnded(String testName)voidtestFailed(int status, Test test, Throwable t)voidtestStarted(String testName)
-
-
-
Field Detail
-
SUCCESS_EXIT
public static final int SUCCESS_EXIT
- See Also:
- Constant Field Values
-
FAILURE_EXIT
public static final int FAILURE_EXIT
- See Also:
- Constant Field Values
-
EXCEPTION_EXIT
public static final int EXCEPTION_EXIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MondrianTestRunner
public MondrianTestRunner()
Constructs a TestRunner.
-
MondrianTestRunner
public MondrianTestRunner(PrintStream writer)
Constructs a TestRunner using the given stream for all the output
-
MondrianTestRunner
public MondrianTestRunner(MondrianResultPrinter printer)
Constructs a TestRunner using the given ResultPrinter all the output
-
-
Method Detail
-
getLoader
public TestSuiteLoader getLoader()
Always use the StandardTestSuiteLoader. Overridden from BaseTestRunner.
-
testFailed
public void testFailed(int status, Test test, Throwable t)
-
testStarted
public void testStarted(String testName)
-
testEnded
public void testEnded(String testName)
-
createTestResult
protected TestResult createTestResult()
Creates the TestResult to be used for the test run.
-
doRun
public TestResult doRun(Test suite)
-
runFailed
protected void runFailed(String message)
-
setPrinter
public void setPrinter(MondrianResultPrinter printer)
-
setIterations
public void setIterations(int fIterations)
-
getIterations
public int getIterations()
-
setVUsers
public void setVUsers(int fVUsers)
-
getVUsers
public int getVUsers()
-
setTimeLimit
public void setTimeLimit(int fTimeLimit)
-
getTimeLimit
public int getTimeLimit()
-
-