- generateDocumentation(RequestDocumentor, String...) - Method in class org.apache.sling.testing.tools.http.RequestExecutor
-
- getBundleId(String) - Method in class org.apache.sling.testing.tools.osgi.WebconsoleClient
-
Get bundle id
- getBundleState(String) - Method in class org.apache.sling.testing.tools.osgi.WebconsoleClient
-
Get specified bundle state
- getBundlesToInstall() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
-
- getBundlesToInstall(String) - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
-
Get the list of additional bundles to install, as specified by additionalBundlesPath parameter
- getBundleSymbolicName(File) - Method in class org.apache.sling.testing.tools.sling.BundlesInstaller
-
- getBundleVersion(String) - Method in class org.apache.sling.testing.tools.osgi.WebconsoleClient
-
Get bundle version
- getBundleVersion(File) - Method in class org.apache.sling.testing.tools.sling.BundlesInstaller
-
- getConfig() - Method in class org.apache.sling.testing.tools.serversetup.ServerSetup
-
- getContent() - Method in class org.apache.sling.testing.tools.http.RequestExecutor
-
- getContext() - Method in class org.apache.sling.testing.tools.serversetup.ServerSetup
-
Return a context that @SetupPhase
can use to
communicate among them and with the outside.
- getCustomizer() - Method in class org.apache.sling.testing.tools.http.Request
-
- getDescription() - Method in interface org.apache.sling.testing.tools.retry.RetryLoop.Condition
-
Used in failure messages to describe what was expected
- getEntity() - Method in class org.apache.sling.testing.tools.http.RequestExecutor
-
- getHttpClient() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
-
- getId() - Method in interface org.apache.sling.testing.tools.serversetup.SetupPhase
-
Get the phase ID string, a list of those
is used by
ServerSetup
to decide
which phases to run
- getId() - Method in class org.apache.sling.testing.tools.serversetup.StartRunnableJarPhase
-
- getInstance(String) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceManager
-
- getInstance(String) - Static method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- getInstance() - Static method in class org.apache.sling.testing.tools.sling.TimeoutsProvider
-
- getJarExecutor() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- getKillPhase(String) - Method in class org.apache.sling.testing.tools.serversetup.StartRunnableJarPhase
-
Return a SetupPhase that kills the process started by this phase
- getOutputFile() - Method in class org.apache.sling.testing.tools.http.RequestDocumentor
-
- getParentPath(String) - Method in class org.apache.sling.testing.tools.sling.SlingClient
-
Return parent path: whatever comes before the last / in path, empty
string if no / in path.
- getPassword() - Method in class org.apache.sling.testing.tools.http.Request
-
- getPhasesToRun() - Method in class org.apache.sling.testing.tools.serversetup.ServerSetup
-
Return the IDs of phases that should run
- getRedirects() - Method in class org.apache.sling.testing.tools.http.Request
-
- getRemainingTimeSeconds() - Method in class org.apache.sling.testing.tools.retry.RetryLoop
-
- getRequest() - Method in class org.apache.sling.testing.tools.http.Request
-
- getRequest() - Method in class org.apache.sling.testing.tools.http.RequestExecutor
-
- getRequestBuilder() - Method in interface org.apache.sling.testing.tools.sling.SlingInstance
-
Start server if needed, and return a RequestBuilder that points to it
- getRequestBuilder() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
-
Start server if needed, and return a RequestBuilder that points to it
- getRequestExecutor() - Method in interface org.apache.sling.testing.tools.sling.SlingInstance
-
Returns a RequestExecutor for this server
- getRequestExecutor() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
-
- getResponse() - Method in class org.apache.sling.testing.tools.http.RequestExecutor
-
- getServerBaseUrl() - Method in interface org.apache.sling.testing.tools.sling.SlingInstance
-
Start server if needed, and return its base URL
- getServerBaseUrl() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- getServerBaseUrl() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
-
Start server if needed, and return its base URL
- getServerPassword() - Method in interface org.apache.sling.testing.tools.sling.SlingInstance
-
Return password configured for execution of HTTP requests
- getServerPassword() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
-
Return password configured for execution of HTTP requests
- getServerPort() - Method in class org.apache.sling.testing.tools.jarexec.JarExecutor
-
- getServerUsername() - Method in interface org.apache.sling.testing.tools.sling.SlingInstance
-
Return username configured for execution of HTTP requests
- getServerUsername() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
-
Return username configured for execution of HTTP requests
- getSlingInstance() - Method in class org.apache.sling.testing.tools.sling.SlingInstancesRule
-
- getTimeout(long) - Method in class org.apache.sling.testing.tools.sling.TimeoutsProvider
-
- getTimeout(int) - Method in class org.apache.sling.testing.tools.sling.TimeoutsProvider
-
- getTimeout(String, int) - Method in class org.apache.sling.testing.tools.sling.TimeoutsProvider
-
Get timeout from a system property, with default value
- getUsername() - Method in class org.apache.sling.testing.tools.http.Request
-
- getWebconsoleClient() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
-
- refreshPackages() - Method in class org.apache.sling.testing.tools.osgi.WebconsoleClient
-
Calls PackageAdmin.refreshPackages to enforce re-wiring of all bundles.
- RemoteLogDumper - Class in org.apache.sling.testing.tools.junit
-
The RemoteLogDumper Rule fetches logs which are generated due to execution of test from the
remote server and dumps them locally upon test failure.
- RemoteLogDumper() - Constructor for class org.apache.sling.testing.tools.junit.RemoteLogDumper
-
- reportException(Throwable) - Method in class org.apache.sling.testing.tools.retry.RetryLoop
-
Can be overridden to report Exceptions that happen in the retry loop
- Request - Class in org.apache.sling.testing.tools.http
-
Request class with convenience with...
- RequestBuilder - Class in org.apache.sling.testing.tools.http
-
Convenience builder for Request objects
- RequestBuilder(String) - Constructor for class org.apache.sling.testing.tools.http.RequestBuilder
-
- RequestCustomizer - Interface in org.apache.sling.testing.tools.http
-
Customize a Request before it is executed
- RequestDocumentor - Class in org.apache.sling.testing.tools.http
-
Generate RESTful API documentation based on actual requests
executed during integration tests, enhanced with user-supplied
bits of documentation.
- RequestDocumentor(String) - Constructor for class org.apache.sling.testing.tools.http.RequestDocumentor
-
- RequestExecutor - Class in org.apache.sling.testing.tools.http
-
Executes a Request and provides convenience methods
to validate the results.
- RequestExecutor(DefaultHttpClient) - Constructor for class org.apache.sling.testing.tools.http.RequestExecutor
-
- RetryingContentChecker - Class in org.apache.sling.testing.tools.http
-
Retry a GET on an URL until it returns 200 or
until this times out.
- RetryingContentChecker(RequestExecutor, RequestBuilder) - Constructor for class org.apache.sling.testing.tools.http.RetryingContentChecker
-
- RetryingContentChecker(RequestExecutor, RequestBuilder, String, String) - Constructor for class org.apache.sling.testing.tools.http.RetryingContentChecker
-
- RetryLoop - Class in org.apache.sling.testing.tools.retry
-
Convenience class for retrying tests
until timeout or success.
- RetryLoop(RetryLoop.Condition, int, int) - Constructor for class org.apache.sling.testing.tools.retry.RetryLoop
-
Retry Condition c until it returns true or timeout.
- RetryLoop.Condition - Interface in org.apache.sling.testing.tools.retry
-
Interface for conditions to check, isTrue will be called
repeatedly until success or timeout
- run(ServerSetup) - Method in interface org.apache.sling.testing.tools.serversetup.SetupPhase
-
Run this phase in the context of supplied ServerSetup
- run(ServerSetup) - Method in class org.apache.sling.testing.tools.serversetup.StartRunnableJarPhase
-
- SERVER_BASE_URL - Static variable in class org.apache.sling.testing.tools.serversetup.ServerSetup
-
Context attribute: server access URL
- SERVER_HOSTNAME_PROP - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
-
- SERVER_READY_PROP_PREFIX - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
-
- SERVER_READY_TIMEOUT_PROP - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
-
- ServerSetup - Class in org.apache.sling.testing.tools.serversetup
-
This is an evolution of the SlingTestBase/JarExecutor
combination that we had at revision 1201491, used
to control the server side of integration tests.
- ServerSetup() - Constructor for class org.apache.sling.testing.tools.serversetup.ServerSetup
-
- ServerSetup.SetupException - Exception in org.apache.sling.testing.tools.serversetup
-
- ServerSetupSingleton - Class in org.apache.sling.testing.tools.serversetup
-
In general we just need a singleton ServerSetup, that
uses System properties for its configuration - this class
supplies that.
- ServerSetupSingleton() - Constructor for class org.apache.sling.testing.tools.serversetup.ServerSetupSingleton
-
- setConfig(Properties) - Method in class org.apache.sling.testing.tools.serversetup.ServerSetup
-
Set configuration and reset our lists of phases
that already ran or failed.
- setExtraBundlesInstalled(boolean) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- setInstallBundlesFailed(boolean) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- setJarExecutor(JarExecutor) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- setProperties(String, String...) - Method in class org.apache.sling.testing.tools.sling.SlingClient
-
Updates a node at specified path, with optional properties
specified as a list of String arguments, odd values are keys
and even arguments are values.
- setProperties(String, Map<String, Object>) - Method in class org.apache.sling.testing.tools.sling.SlingClient
-
Updates a node at specified path, with optional properties
- setServerBaseUrl(String) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- setServerInfoLogged(boolean) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- setServerReady(boolean) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- setServerReadyTestFailed(boolean) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- setServerStarted(boolean) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- setStartupInfoProvided(boolean) - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
-
- SetupException(String) - Constructor for exception org.apache.sling.testing.tools.serversetup.ServerSetup.SetupException
-
- SetupException(String, Throwable) - Constructor for exception org.apache.sling.testing.tools.serversetup.ServerSetup.SetupException
-
- SetupPhase - Interface in org.apache.sling.testing.tools.serversetup
-
A single phase of the test server setup
- setupTestServer() - Method in class org.apache.sling.testing.tools.serversetup.ServerSetup
-
Runs all startup phases that have not run yet,
and throws an Exception or call Junit's fail()
method if one of them fails or failed in a
previous call of this method.
- shutdown() - Method in class org.apache.sling.testing.tools.serversetup.ServerSetup
-
Called by a shutdown hook to run
all shutdown phases, but can also
be called explicitly, each shutdown
phase only runs once anyway.
- SHUTDOWN_ID_SUFFIX - Static variable in class org.apache.sling.testing.tools.serversetup.ServerSetup
-
Standard suffix for shutdown tasks IDs
- SlingClient - Class in org.apache.sling.testing.tools.sling
-
Simple Sling client, created for integration
tests but should be general purpose
- SlingClient(String, String, String) - Constructor for class org.apache.sling.testing.tools.sling.SlingClient
-
- SlingInstance - Interface in org.apache.sling.testing.tools.sling
-
Interface used to communicate with a sling instance
- SlingInstanceManager - Class in org.apache.sling.testing.tools.sling
-
Helper class for running tests against multiple Sling instances,
takes care of starting the Sling instances and waiting for them to be ready.
- SlingInstanceManager(String...) - Constructor for class org.apache.sling.testing.tools.sling.SlingInstanceManager
-
- SlingInstanceManager(Properties, String...) - Constructor for class org.apache.sling.testing.tools.sling.SlingInstanceManager
-
Get configuration but do not start server yet, that's done on demand
- SlingInstancesRule - Class in org.apache.sling.testing.tools.sling
-
JUnit Rule that executes tests for multiple Sling instances.
- SlingInstancesRule(String...) - Constructor for class org.apache.sling.testing.tools.sling.SlingInstancesRule
-
- SlingInstancesRule(Iterable<SlingInstance>) - Constructor for class org.apache.sling.testing.tools.sling.SlingInstancesRule
-
- SlingInstanceState - Class in org.apache.sling.testing.tools.sling
-
Information about a sling instance that is shared between tests.
- SlingTestBase - Class in org.apache.sling.testing.tools.sling
-
Base class for running tests against a Sling instance,
takes care of starting Sling and waiting for it to be ready.
- SlingTestBase() - Constructor for class org.apache.sling.testing.tools.sling.SlingTestBase
-
- SlingTestBase(SlingInstanceState, Properties) - Constructor for class org.apache.sling.testing.tools.sling.SlingTestBase
-
Get configuration but do not start server yet, that's done on demand
- start() - Method in class org.apache.sling.testing.tools.jarexec.JarExecutor
-
Start the jar if not done yet, and setup runtime hook
to stop it.
- START_BUNDLES_TIMEOUT_SECONDS - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
-
- startAllBundles(List<String>, int) - Method in class org.apache.sling.testing.tools.sling.BundlesInstaller
-
- startBundle(String) - Method in class org.apache.sling.testing.tools.osgi.WebconsoleClient
-
Start specified bundle
- starting(Description) - Method in class org.apache.sling.testing.tools.junit.RemoteLogDumper
-
- starting(Description) - Method in class org.apache.sling.testing.tools.junit.TestDescriptionRule
-
- StartRunnableJarPhase - Class in org.apache.sling.testing.tools.serversetup
-
SetupPhase that uses a JarExecutor to start
a runnable jar, and stop it at system shutdown
if our SetupServer wants that.
- StartRunnableJarPhase(ServerSetup, String, String, Properties) - Constructor for class org.apache.sling.testing.tools.serversetup.StartRunnableJarPhase
-
- stop() - Method in class org.apache.sling.testing.tools.jarexec.JarExecutor
-
Stop the process that we started, if any, and wait for it to exit before returning