Skip navigation links
A B C D E F G H I J K L M O P R S T U W 

A

ACTIVE_STATE - Static variable in class org.apache.sling.testing.tools.sling.BundlesInstaller
 
ADDITONAL_BUNDLES_PATH - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
 
ADDITONAL_BUNDLES_UNINSTALL - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
 
addSetupPhase(SetupPhase) - Method in class org.apache.sling.testing.tools.serversetup.ServerSetup
Add a SetupPhase to our list.
ADMIN - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
 
apply(Statement, Description) - Method in class org.apache.sling.testing.tools.sling.SlingInstancesRule
Evaluate our base statement once for every instance.
assertContentContains(String...) - Method in class org.apache.sling.testing.tools.http.RequestExecutor
For each supplied string, fail unless content contains it
assertContentRegexp(String...) - Method in class org.apache.sling.testing.tools.http.RequestExecutor
For each supplied regexp, fail unless content contains at least one line that matches.
assertContentType(String) - Method in class org.apache.sling.testing.tools.http.RequestExecutor
Verify that response matches supplied content type
assertMore(RequestExecutor) - Method in class org.apache.sling.testing.tools.http.RetryingContentChecker
Optionally perform additional tests in retry condition
assertStatus(int) - Method in class org.apache.sling.testing.tools.http.RequestExecutor
Verify that response matches supplied status

B

blockIfRequested() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
Optionally block here so that the runnable jar stays up - we can then run tests against it from another VM.
buildGetRequest(String, String...) - Method in class org.apache.sling.testing.tools.http.RequestBuilder
Build a GET request to specified path with optional query parameters.
buildOtherRequest(HttpRequestBase) - Method in class org.apache.sling.testing.tools.http.RequestBuilder
Wrap supplied HTTP request
buildPostRequest(String) - Method in class org.apache.sling.testing.tools.http.RequestBuilder
Build a POST request to specified path with optional query parameters.
buildUrl(String, String...) - Method in class org.apache.sling.testing.tools.http.RequestBuilder
Build an URL from our base path, supplied path and optional query parameters.
BUNDLE_INSTALL_TIMEOUT_SECONDS - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
 
BUNDLE_TO_INSTALL_PREFIX - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
 
BundlesInstaller - Class in org.apache.sling.testing.tools.sling
Utility that installs and starts additional bundles for testing
BundlesInstaller(WebconsoleClient) - Constructor for class org.apache.sling.testing.tools.sling.BundlesInstaller
 

C

check(String, int, int, int) - Method in class org.apache.sling.testing.tools.http.RetryingContentChecker
Check specified path for expected status, or timeout
checkBundleInstalled(String, int) - Method in class org.apache.sling.testing.tools.osgi.WebconsoleClient
Check that specified bundle is installed - must be called before other methods that take a symbolicName parameter, in case installBundle was just called and the actual installation hasn't happened yet.
CLASS_NAME_PROP - Static variable in class org.apache.sling.testing.tools.serversetup.ServerSetupSingleton
Property name of the ServerSetup class that we instantiate
clear() - Method in class org.apache.sling.testing.tools.http.RequestExecutor
 
CONSOLE_BUNDLES_PATH - Static variable in class org.apache.sling.testing.tools.osgi.WebconsoleClient
 
consumeEntity() - Method in class org.apache.sling.testing.tools.http.RequestExecutor
Can be overridden to consume in a different way, or not at all
createNode(String, String...) - Method in class org.apache.sling.testing.tools.sling.SlingClient
Create a node at specified path, with optional properties specified as a list of String arguments, odd values are keys and even arguments are values.
createNode(String, Map<String, Object>) - Method in class org.apache.sling.testing.tools.sling.SlingClient
Create a node at specified path, with optional properties
customizeRequest(Request) - Method in interface org.apache.sling.testing.tools.http.RequestCustomizer
 

D

DEFAULT_EXIT_TIMEOUT - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
DEFAULT_INSTANCE_NAME - Static variable in class org.apache.sling.testing.tools.sling.SlingInstanceState
 
DEFAULT_JAR_FOLDER - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
DEFAULT_JAR_NAME_REGEXP - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
DEFAULT_PORT - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
delete(String) - Method in class org.apache.sling.testing.tools.sling.SlingClient
Delete supplied path
destroy() - Method in class org.apache.sling.testing.tools.junit.TestNameLoggingFilter
 
documentRequest(PrintWriter, RequestExecutor, String[]) - Method in class org.apache.sling.testing.tools.http.RequestDocumentor
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class org.apache.sling.testing.tools.junit.TestNameLoggingFilter
 

E

execute(Request) - Method in class org.apache.sling.testing.tools.http.RequestExecutor
 
exists(String) - Method in class org.apache.sling.testing.tools.sling.SlingClient
 

F

failed(Throwable, Description) - Method in class org.apache.sling.testing.tools.junit.RemoteLogDumper
 
finished(Description) - Method in class org.apache.sling.testing.tools.junit.RemoteLogDumper
 
finished(Description) - Method in class org.apache.sling.testing.tools.junit.TestDescriptionRule
 

G

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
Get the list of additional bundles to install, as specified by the system property SlingTestBase.ADDITONAL_BUNDLES_PATH
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
Return the configuration Properties that were set by ServerSetup.setConfig(java.util.Properties)
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
 

H

HTTP_PREFIX - Static variable in class org.apache.sling.testing.tools.sling.SlingClient
 

I

init(FilterConfig) - Method in class org.apache.sling.testing.tools.junit.TestNameLoggingFilter
 
installAdditionalBundles() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
 
installBundle(File, boolean) - Method in class org.apache.sling.testing.tools.osgi.WebconsoleClient
Install a bundle using the Felix webconsole HTTP interface, with a specific start level
installBundle(File, boolean, int) - Method in class org.apache.sling.testing.tools.osgi.WebconsoleClient
Install a bundle using the Felix webconsole HTTP interface, with a specific start level
installBundles(List<File>, boolean) - Method in class org.apache.sling.testing.tools.sling.BundlesInstaller
Install a list of bundles supplied as Files
instance(Properties) - Static method in class org.apache.sling.testing.tools.serversetup.ServerSetupSingleton
Create an instance based on the @CLASS_NAME_PROP property if needed and return it.
instance() - Static method in class org.apache.sling.testing.tools.serversetup.ServerSetupSingleton
Same as no-parameter instance() method, but uses System properties to create its instance.
isExtraBundlesInstalled() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
 
isInstallBundlesFailed() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
 
isInstalled(File) - Method in class org.apache.sling.testing.tools.sling.BundlesInstaller
 
isInstalledWithSameVersion(File) - Method in class org.apache.sling.testing.tools.sling.BundlesInstaller
Check if the installed version matches the one of the bundle (file)
isServerInfoLogged() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
 
isServerReady() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
 
isServerReadyTestFailed() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
 
isServerStarted() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
 
isServerStartedByThisClass() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
 
isStartupInfoProvided() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceState
 
isStartupPhase() - Method in interface org.apache.sling.testing.tools.serversetup.SetupPhase
Is this a startup or shutdown phase?
isStartupPhase() - Method in class org.apache.sling.testing.tools.serversetup.StartRunnableJarPhase
 
isTrue() - Method in interface org.apache.sling.testing.tools.retry.RetryLoop.Condition
If true we stop retrying.
iterator() - Method in class org.apache.sling.testing.tools.sling.SlingInstanceManager
 

J

JarExecutor - Class in org.apache.sling.testing.tools.jarexec
Start a runnable jar by forking a JVM process, and terminate the process when this VM exits.
JarExecutor(Properties) - Constructor for class org.apache.sling.testing.tools.jarexec.JarExecutor
Build a JarExecutor, locate the jar to run, etc
JarExecutor.ExecutorException - Exception in org.apache.sling.testing.tools.jarexec
 
JSON_KEY_DATA - Static variable in class org.apache.sling.testing.tools.osgi.WebconsoleClient
 
JSON_KEY_ID - Static variable in class org.apache.sling.testing.tools.osgi.WebconsoleClient
 
JSON_KEY_STATE - Static variable in class org.apache.sling.testing.tools.osgi.WebconsoleClient
 
JSON_KEY_VERSION - Static variable in class org.apache.sling.testing.tools.osgi.WebconsoleClient
 

K

KEEP_JAR_RUNNING_PROP - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
 

L

LOCATION_HEADER - Static variable in class org.apache.sling.testing.tools.sling.SlingClient
 

M

mkdir(String) - Method in class org.apache.sling.testing.tools.sling.SlingClient
Create path using MKCOL
mkdirs(String) - Method in class org.apache.sling.testing.tools.sling.SlingClient
Create path and all its parent folders, using MKCOL

O

onTimeout() - Method in class org.apache.sling.testing.tools.http.RetryingContentChecker
Called if a timeout occurs
onTimeout() - Method in class org.apache.sling.testing.tools.retry.RetryLoop
Called if the loop times out without success, just before failing
org.apache.sling.testing.tools.http - package org.apache.sling.testing.tools.http
 
org.apache.sling.testing.tools.jarexec - package org.apache.sling.testing.tools.jarexec
 
org.apache.sling.testing.tools.junit - package org.apache.sling.testing.tools.junit
 
org.apache.sling.testing.tools.osgi - package org.apache.sling.testing.tools.osgi
OSGI testing tools.
org.apache.sling.testing.tools.retry - package org.apache.sling.testing.tools.retry
 
org.apache.sling.testing.tools.serversetup - package org.apache.sling.testing.tools.serversetup
 
org.apache.sling.testing.tools.sling - package org.apache.sling.testing.tools.sling
 
OUTPUT_BASE - Static variable in class org.apache.sling.testing.tools.http.RequestDocumentor
 

P

PHASES_TO_RUN_PROP - Static variable in class org.apache.sling.testing.tools.serversetup.ServerSetup
Config property name: comma-separated list of phases to run
process(HttpRequest, HttpContext) - Method in class org.apache.sling.testing.tools.junit.TestDescriptionInterceptor
 
PROP_EXIT_TIMEOUT_SECONDS - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_JAR_FOLDER - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_JAR_NAME_REGEXP - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_JAR_OPTIONS - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_JAVA_PATH - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_NAME_PREFIX - Static variable in class org.apache.sling.testing.tools.serversetup.ServerSetup
Prefix used for our property names
PROP_PREFIX - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_SERVER_PORT - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_SYNC_EXEC - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_SYNC_EXEC_EXPECTED - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_TIMEOUT_MULTIPLIER - Static variable in class org.apache.sling.testing.tools.sling.TimeoutsProvider
 
PROP_VM_OPTIONS - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_WAIT_ONSHUTDOWN - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
PROP_WORK_FOLDER - Static variable in class org.apache.sling.testing.tools.jarexec.JarExecutor
 

R

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
 

S

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

T

TEST_CLASS - Static variable in class org.apache.sling.testing.tools.junit.RemoteLogDumper
 
TEST_NAME - Static variable in class org.apache.sling.testing.tools.junit.RemoteLogDumper
 
TEST_SERVER_HOSTNAME - Static variable in class org.apache.sling.testing.tools.serversetup.StartRunnableJarPhase
 
TEST_SERVER_PASSWORD - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
 
TEST_SERVER_URL_PROP - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
 
TEST_SERVER_USERNAME - Static variable in class org.apache.sling.testing.tools.sling.SlingTestBase
 
TestDescriptionInterceptor - Class in org.apache.sling.testing.tools.junit
HttpClient interceptor that propagates the current test name as part HTTP request headers.
TestDescriptionInterceptor() - Constructor for class org.apache.sling.testing.tools.junit.TestDescriptionInterceptor
 
TestDescriptionRule - Class in org.apache.sling.testing.tools.junit
Junit rule which exposes the current executing test's description as a thread local instance
TestDescriptionRule() - Constructor for class org.apache.sling.testing.tools.junit.TestDescriptionRule
 
TestNameLoggingFilter - Class in org.apache.sling.testing.tools.junit
Filter which logs the test class and name being executed, if set in request headers.
TestNameLoggingFilter() - Constructor for class org.apache.sling.testing.tools.junit.TestNameLoggingFilter
 
TimeoutsProvider - Class in org.apache.sling.testing.tools.sling
Return timeout values that can be multiplied by a configurable factor.
toString() - Method in class org.apache.sling.testing.tools.http.Request
 
toString() - Method in class org.apache.sling.testing.tools.http.RequestDocumentor
 
toString() - Method in class org.apache.sling.testing.tools.http.RequestExecutor
 
toString() - Method in class org.apache.sling.testing.tools.jarexec.JarExecutor
 
toString() - Method in class org.apache.sling.testing.tools.serversetup.StartRunnableJarPhase
 

U

uninstallAdditionalBundles() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
 
uninstallAdditionalBundlesIfNecessary() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
Automatically by the SlingRemoteTestRunner since package version 1.1.0.
uninstallBundle(String, File) - Method in class org.apache.sling.testing.tools.osgi.WebconsoleClient
 
uninstallBundles(List<File>) - Method in class org.apache.sling.testing.tools.sling.BundlesInstaller
Uninstall a list of bundles supplied as Files
upload(String, InputStream, int, boolean) - Method in class org.apache.sling.testing.tools.sling.SlingClient
Upload using a PUT request.

W

waitForBundlesInstalled(List<String>, int) - Method in class org.apache.sling.testing.tools.sling.BundlesInstaller
Wait for all bundles specified in symbolicNames list to be installed in the remote web console.
waitForServerReady() - Method in class org.apache.sling.testing.tools.sling.SlingTestBase
Check a number of server URLs for readyness
WebconsoleClient - Class in org.apache.sling.testing.tools.osgi
HTTP Client for the Felix webconsole - simplistic for now
WebconsoleClient(String, String, String) - Constructor for class org.apache.sling.testing.tools.osgi.WebconsoleClient
 
withContent(String) - Method in class org.apache.sling.testing.tools.http.Request
 
withCredentials(String, String) - Method in class org.apache.sling.testing.tools.http.Request
 
withCustomizer(RequestCustomizer) - Method in class org.apache.sling.testing.tools.http.Request
 
withEntity(HttpEntity) - Method in class org.apache.sling.testing.tools.http.Request
 
withHeader(String, String) - Method in class org.apache.sling.testing.tools.http.Request
 
withRedirects(boolean) - Method in class org.apache.sling.testing.tools.http.Request
 
A B C D E F G H I J K L M O P R S T U W 
Skip navigation links

Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.