mondrian.test
Class MondrianTestRunner

java.lang.Object
  extended by junit.runner.BaseTestRunner
      extended by mondrian.test.MondrianTestRunner
All Implemented Interfaces:
junit.framework.TestListener

public class MondrianTestRunner
extends junit.runner.BaseTestRunner


Field Summary
static int EXCEPTION_EXIT
           
static int FAILURE_EXIT
           
static int SUCCESS_EXIT
           
 
Fields inherited from class junit.runner.BaseTestRunner
SUITE_METHODNAME
 
Constructor Summary
MondrianTestRunner()
          Constructs a TestRunner.
MondrianTestRunner(MondrianResultPrinter printer)
          Constructs a TestRunner using the given ResultPrinter all the output
MondrianTestRunner(PrintStream writer)
          Constructs a TestRunner using the given stream for all the output
 
Method Summary
protected  junit.framework.TestResult createTestResult()
          Creates the TestResult to be used for the test run.
 junit.framework.TestResult doRun(junit.framework.Test suite)
           
 int getIterations()
           
 junit.runner.TestSuiteLoader getLoader()
          Always use the StandardTestSuiteLoader.
 int getTimeLimit()
           
 int getVUsers()
           
protected  void runFailed(String message)
           
 void setIterations(int fIterations)
           
 void setPrinter(MondrianResultPrinter printer)
           
 void setTimeLimit(int fTimeLimit)
           
 void setVUsers(int fVUsers)
           
 void testEnded(String testName)
           
 void testFailed(int status, junit.framework.Test test, Throwable t)
           
 void testStarted(String testName)
           
 
Methods inherited from class junit.runner.BaseTestRunner
addError, addFailure, clearStatus, elapsedTimeAsString, endTest, extractClassName, getFilteredTrace, getFilteredTrace, getPreference, getPreference, getPreferences, getTest, inVAJava, loadSuiteClass, processArguments, savePreferences, setLoading, setPreference, setPreferences, showStackRaw, startTest, truncate, useReloadingTestSuiteLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 junit.runner.TestSuiteLoader getLoader()
Always use the StandardTestSuiteLoader. Overridden from BaseTestRunner.

Overrides:
getLoader in class junit.runner.BaseTestRunner

testFailed

public void testFailed(int status,
                       junit.framework.Test test,
                       Throwable t)
Specified by:
testFailed in class junit.runner.BaseTestRunner

testStarted

public void testStarted(String testName)
Specified by:
testStarted in class junit.runner.BaseTestRunner

testEnded

public void testEnded(String testName)
Specified by:
testEnded in class junit.runner.BaseTestRunner

createTestResult

protected junit.framework.TestResult createTestResult()
Creates the TestResult to be used for the test run.


doRun

public junit.framework.TestResult doRun(junit.framework.Test suite)

runFailed

protected void runFailed(String message)
Specified by:
runFailed in class junit.runner.BaseTestRunner

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()

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads