public class BMTestRunner extends Object
MongoDBForTestsFactory if MongoDB host has not
been specified.
The mock context will create an in-memory MongoDB server that will be used for both the test configuration
and the actual test results.config/spring/test-context.xml that| Constructor and Description |
|---|
BMTestRunner() |
BMTestRunner(long maxTestTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(BMTestRunnerListener listener)
Add a listener.
|
static String |
getResultsCSV(ResultsRestAPI resultsAPI,
String test,
String run)
Helper method to extract the csv results to a string that can be output in the logs
|
static void |
main(String[] args)
Main method starts up the the application context and provides a callback
|
void |
run(String mongoConfigHost,
String mongoTestHost,
Properties testProperties)
Execute the default test against the given MongoDB or an in-memory instance
|
public BMTestRunner()
MAX_TEST_TIMEpublic BMTestRunner(long maxTestTime)
maxTestTime - the maximum time before we stop the test and failpublic void addListener(BMTestRunnerListener listener)
running the testpublic static void main(String[] args)
echoUsage()public void run(String mongoConfigHost, String mongoTestHost, Properties testProperties) throws Exception
mongoConfigHost - the MongoDB host to connect to for configuraton data or null to use an in-memory versionmongoTestHost - the MongoDB host to connect to for test data data or null to use the same database as the configtestProperties - any properties to specifically set for the test or null if there are noneExceptionpublic static String getResultsCSV(ResultsRestAPI resultsAPI, String test, String run)
Copyright © 2005–2018 Alfresco Software. All rights reserved.