public class Test extends Object implements LifecycleListener, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
Test(MongoTestDAO testDAO,
LogService logService,
String release,
Integer schema,
String description,
String contextPath,
TestDefaults defaults) |
| Modifier and Type | Method and Description |
|---|---|
void |
forcePing()
TEST ONLY: Force the driver ping task to execute on the current thread.
|
String |
getRelease() |
Integer |
getSchema() |
TestRun |
getTestRun(org.bson.types.ObjectId testRunId)
Get the object managing the specific test run
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Keep track of the parent application context, which will act as a parent context for all test runs.
|
void |
setSystemCapabilities(String capabilitiesStr)
Set a comma-separated string of capabilities.
|
void |
setTestRunMonitorPeriod(long testRunMonitorPeriod)
Override the
default test run monitor period. |
void |
start() |
void |
stop() |
public Test(MongoTestDAO testDAO, LogService logService, String release, Integer schema, String description, String contextPath, TestDefaults defaults)
testDAO - data persistencelogService - loggingrelease - the software release name of this testschema - the property schema versiondescription - the test descriptioncontextPath - the context under which the application was launcheddefaults - provider of all the test defaultspublic void setTestRunMonitorPeriod(long testRunMonitorPeriod)
default test run monitor period.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setSystemCapabilities(String capabilitiesStr)
public String getRelease()
public Integer getSchema()
public TestRun getTestRun(org.bson.types.ObjectId testRunId)
testRunId - the ID of the test runpublic void start()
throws Exception
start in interface LifecycleListenerExceptionpublic void forcePing()
public void stop()
stop in interface LifecycleListenerCopyright © 2005–2018 Alfresco Software. All rights reserved.