|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.testing.tools.sling.SlingTestBase
public class SlingTestBase
Base class for running tests against a Sling instance, takes care of starting Sling and waiting for it to be ready.
| Field Summary | |
|---|---|
static java.lang.String |
ADDITONAL_BUNDLES_PATH
|
static java.lang.String |
ADMIN
|
static java.lang.String |
BUNDLE_TO_INSTALL_PREFIX
|
static java.lang.String |
KEEP_JAR_RUNNING_PROP
|
static java.lang.String |
SERVER_HOSTNAME_PROP
|
static java.lang.String |
SERVER_READY_PROP_PREFIX
|
static java.lang.String |
SERVER_READY_TIMEOUT_PROP
|
static java.lang.String |
TEST_SERVER_URL_PROP
|
| Constructor Summary | |
|---|---|
SlingTestBase()
Get configuration but do not start server yet, that's done on demand |
|
| Method Summary | |
|---|---|
protected void |
blockIfRequested()
Optionally block here so that the runnable jar stays up - we can then run tests against it from another VM. |
protected org.apache.http.client.HttpClient |
getHttpClient()
|
protected RequestBuilder |
getRequestBuilder()
Start server if needed, and return a RequestBuilder that points to it |
protected RequestExecutor |
getRequestExecutor()
|
protected java.lang.String |
getServerBaseUrl()
Start server if needed, and return its base URL |
protected WebconsoleClient |
getWebconsoleClient()
|
protected void |
installExtraBundles()
Install all bundles found under our additional bundles path |
protected boolean |
isServerStartedByThisClass()
|
protected void |
waitForServerReady()
Check a number of server URLs for readyness |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TEST_SERVER_URL_PROP
public static final java.lang.String SERVER_READY_TIMEOUT_PROP
public static final java.lang.String SERVER_READY_PROP_PREFIX
public static final java.lang.String KEEP_JAR_RUNNING_PROP
public static final java.lang.String SERVER_HOSTNAME_PROP
public static final java.lang.String ADDITONAL_BUNDLES_PATH
public static final java.lang.String BUNDLE_TO_INSTALL_PREFIX
public static final java.lang.String ADMIN
| Constructor Detail |
|---|
public SlingTestBase()
| Method Detail |
|---|
protected RequestBuilder getRequestBuilder()
protected java.lang.String getServerBaseUrl()
protected void blockIfRequested()
protected void waitForServerReady()
throws java.lang.Exception
java.lang.Exception
protected void installExtraBundles()
throws java.lang.Exception
java.lang.Exceptionprotected boolean isServerStartedByThisClass()
protected org.apache.http.client.HttpClient getHttpClient()
protected RequestExecutor getRequestExecutor()
protected WebconsoleClient getWebconsoleClient()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||