|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.alfresco.bm.tools.BMTestRunner
public class BMTestRunner
Utility code to assist with starting up a test context to aid development by instantiating a test-only context for execution.
Note that, it is a prerequisite that the alfresco-benchmark-server project is imported as a dependency for this test.
| Constructor Summary | |
|---|---|
BMTestRunner(String testAppContextLocation,
int threadCount,
String mongoUri,
String testName,
String testRunName,
Properties testProperties)
Construct the help class that will start and stop the test application context |
|
| Method Summary | |
|---|---|
org.springframework.context.support.AbstractApplicationContext |
getCtx()
|
void |
start()
Start the application context |
void |
stop()
Stop the application context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BMTestRunner(String testAppContextLocation,
int threadCount,
String mongoUri,
String testName,
String testRunName,
Properties testProperties)
testAppContextLocation - the name of the test application context file.
This should be based on the testrun-sample-context.xmlthreadCount - the number of threads to runmongoUri - the full MongoDB uri or null to use localhost 'test'testName - the name of the test e.g. bm_00005testRunName - the name of the fictitious test run e.g. run_0001testProperties - additional properties that will be fed into the test context| Method Detail |
|---|
public org.springframework.context.support.AbstractApplicationContext getCtx()
public void start()
public void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||