A B C D E G I J K O P R S T U W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ADDITONAL_BUNDLES_PATH - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- ADDITONAL_BUNDLES_UNINSTALL - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- addSetupPhase(SetupPhase) - Method in class org.apache.sling.testing.serversetup.ServerSetup
-
Add a SetupPhase to our list.
- ADMIN - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- apply(Statement, Description) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstancesRule
-
Evaluate our base statement once for every instance.
B
- blockIfRequested() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
-
Optionally block here so that the runnable jar stays up - we can then run tests against it from another VM.
- BUNDLE_INSTALL_TIMEOUT_SECONDS - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- BUNDLE_TO_INSTALL_PREFIX - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
C
- CLASS_NAME_PROP - Static variable in class org.apache.sling.testing.serversetup.ServerSetupSingleton
-
Property name of the ServerSetup class that we instantiate
D
- DEFAULT_EXIT_TIMEOUT - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- DEFAULT_INSTANCE_NAME - Static variable in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- DEFAULT_JAR_FOLDER - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- DEFAULT_JAR_NAME_REGEXP - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- DEFAULT_PORT - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
E
- extractParams(URI) - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
-
Convert the query part of the URI to a list of name value pairs that are suitable for the client calls
G
- getBundlesToInstall() - Method in class org.apache.sling.testing.serversetup.instance.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.serversetup.instance.SlingTestBase
-
Get the list of additional bundles to install, as specified by additionalBundlesPath parameter
- getConfig() - Method in class org.apache.sling.testing.serversetup.ServerSetup
-
Return the configuration Properties that were set by
ServerSetup.setConfig(java.util.Properties)
- getContext() - Method in class org.apache.sling.testing.serversetup.ServerSetup
-
Return a context that can use to communicate among them and with the outside.
- getId() - Method in interface org.apache.sling.testing.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.serversetup.StartRunnableJarPhase
- getInstance(String) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceManager
- getInstance(String) - Static method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- getJarExecutor() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- getKillPhase(String) - Method in class org.apache.sling.testing.serversetup.StartRunnableJarPhase
-
Return a SetupPhase that kills the process started by this phase
- getOsgiConsoleClient() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- getPhasesToRun() - Method in class org.apache.sling.testing.serversetup.ServerSetup
-
Return the IDs of phases that should run
- getServerBaseUrl() - Method in interface org.apache.sling.testing.serversetup.instance.SlingInstance
-
Start server if needed, and return its base URL
- getServerBaseUrl() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- getServerBaseUrl() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
-
Start server if needed, and return its base URL
- getServerPassword() - Method in interface org.apache.sling.testing.serversetup.instance.SlingInstance
-
Return password configured for execution of HTTP requests
- getServerPassword() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
-
Return password configured for execution of HTTP requests
- getServerPort() - Method in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- getServerUsername() - Method in interface org.apache.sling.testing.serversetup.instance.SlingInstance
-
Return username configured for execution of HTTP requests
- getServerUsername() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
-
Return username configured for execution of HTTP requests
- getSlingClient() - Method in interface org.apache.sling.testing.serversetup.instance.SlingInstance
-
Returns a SlingClient for this server
- getSlingClient() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- getSlingInstance() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstancesRule
I
- installAdditionalBundles() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- instance() - Static method in class org.apache.sling.testing.serversetup.ServerSetupSingleton
-
Same as no-parameter instance() method, but uses System properties to create its instance.
- instance(Properties) - Static method in class org.apache.sling.testing.serversetup.ServerSetupSingleton
-
Create an instance based on the {@CLASS_NAME_PROP) property if needed and return it.
- isExtraBundlesInstalled() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- isInstallBundlesFailed() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- isServerInfoLogged() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- isServerReady() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- isServerReadyTestFailed() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- isServerStarted() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- isServerStartedByThisClass() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- isStartupInfoProvided() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- isStartupPhase() - Method in interface org.apache.sling.testing.serversetup.SetupPhase
-
Is this a startup or shutdown phase?
- isStartupPhase() - Method in class org.apache.sling.testing.serversetup.StartRunnableJarPhase
- iterator() - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceManager
J
- JarExecutor - Class in org.apache.sling.testing.serversetup.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.serversetup.jarexec.JarExecutor
-
Build a JarExecutor, locate the jar to run, etc
- JarExecutor.ExecutorException - Exception in org.apache.sling.testing.serversetup.jarexec
K
- KEEP_JAR_RUNNING_PROP - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
O
- org.apache.sling.testing.serversetup - package org.apache.sling.testing.serversetup
- org.apache.sling.testing.serversetup.instance - package org.apache.sling.testing.serversetup.instance
- org.apache.sling.testing.serversetup.jarexec - package org.apache.sling.testing.serversetup.jarexec
P
- PHASES_TO_RUN_PROP - Static variable in class org.apache.sling.testing.serversetup.ServerSetup
-
Config property name: comma-separated list of phases to run
- PROP_EXIT_TIMEOUT_SECONDS - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_JAR_FOLDER - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_JAR_NAME_REGEXP - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_JAR_OPTIONS - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_JAVA_PATH - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_NAME_PREFIX - Static variable in class org.apache.sling.testing.serversetup.ServerSetup
-
Prefix used for our property names
- PROP_PREFIX - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_SERVER_PORT - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_SYNC_EXEC - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_SYNC_EXEC_EXPECTED - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_VM_OPTIONS - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_WAIT_ONSHUTDOWN - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- PROP_WORK_FOLDER - Static variable in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
R
- run(ServerSetup) - Method in interface org.apache.sling.testing.serversetup.SetupPhase
-
Run this phase in the context of supplied ServerSetup
- run(ServerSetup) - Method in class org.apache.sling.testing.serversetup.StartRunnableJarPhase
S
- SERVER_BASE_URL - Static variable in class org.apache.sling.testing.serversetup.ServerSetup
-
Context attribute: server access URL
- SERVER_HOSTNAME_PROP - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- SERVER_READY_PROP_PREFIX - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- SERVER_READY_QUIET_PERIOD_PROP - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- SERVER_READY_TIMEOUT_DELAY_PROP - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- SERVER_READY_TIMEOUT_INITIAL_DELAY_PROP - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- SERVER_READY_TIMEOUT_PROP - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- ServerSetup - Class in org.apache.sling.testing.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.serversetup.ServerSetup
- ServerSetup.SetupException - Exception in org.apache.sling.testing.serversetup
- ServerSetupSingleton - Class in org.apache.sling.testing.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.serversetup.ServerSetupSingleton
- setConfig(Properties) - Method in class org.apache.sling.testing.serversetup.ServerSetup
-
Set configuration and reset our lists of phases that already ran or failed.
- setExtraBundlesInstalled(boolean) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- setInstallBundlesFailed(boolean) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- setJarExecutor(JarExecutor) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- setServerBaseUrl(String) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- setServerInfoLogged(boolean) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- setServerReady(boolean) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- setServerReadyTestFailed(boolean) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- setServerStarted(boolean) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- setStartupInfoProvided(boolean) - Method in class org.apache.sling.testing.serversetup.instance.SlingInstanceState
- SetupException(String) - Constructor for exception org.apache.sling.testing.serversetup.ServerSetup.SetupException
- SetupException(String, Throwable) - Constructor for exception org.apache.sling.testing.serversetup.ServerSetup.SetupException
- SetupPhase - Interface in org.apache.sling.testing.serversetup
-
A single phase of the test server setup
- setupTestServer() - Method in class org.apache.sling.testing.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.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.serversetup.ServerSetup
-
Standard suffix for shutdown tasks IDs
- SlingInstance - Interface in org.apache.sling.testing.serversetup.instance
-
Interface used to communicate with a sling instance
- SlingInstanceManager - Class in org.apache.sling.testing.serversetup.instance
-
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.serversetup.instance.SlingInstanceManager
- SlingInstanceManager(Properties, String...) - Constructor for class org.apache.sling.testing.serversetup.instance.SlingInstanceManager
-
Get configuration but do not start server yet, that's done on demand
- SlingInstancesRule - Class in org.apache.sling.testing.serversetup.instance
-
JUnit Rule that executes tests for multiple Sling instances.
- SlingInstancesRule(Iterable<SlingInstance>) - Constructor for class org.apache.sling.testing.serversetup.instance.SlingInstancesRule
- SlingInstancesRule(String...) - Constructor for class org.apache.sling.testing.serversetup.instance.SlingInstancesRule
- SlingInstanceState - Class in org.apache.sling.testing.serversetup.instance
-
Information about a sling instance that is shared between tests.
- SlingTestBase - Class in org.apache.sling.testing.serversetup.instance
-
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.serversetup.instance.SlingTestBase
- SlingTestBase(SlingInstanceState, Properties) - Constructor for class org.apache.sling.testing.serversetup.instance.SlingTestBase
-
Get configuration but do not start server yet, that's done on demand
- start() - Method in class org.apache.sling.testing.serversetup.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.serversetup.instance.SlingTestBase
- StartRunnableJarPhase - Class in org.apache.sling.testing.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.serversetup.StartRunnableJarPhase
- stop() - Method in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
-
Stop the process that we started, if any, and wait for it to exit before returning
T
- TEST_SERVER_HOSTNAME - Static variable in class org.apache.sling.testing.serversetup.StartRunnableJarPhase
- TEST_SERVER_PASSWORD - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- TEST_SERVER_URL_PROP - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- TEST_SERVER_USERNAME - Static variable in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- toString() - Method in class org.apache.sling.testing.serversetup.jarexec.JarExecutor
- toString() - Method in class org.apache.sling.testing.serversetup.StartRunnableJarPhase
U
- uninstallAdditionalBundles() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
- uninstallAdditionalBundlesIfNecessary() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
-
Automatically by the SlingRemoteTestRunner since package version 1.1.0.
W
- waitForQuietPeriod() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
-
Wait for the configured duration as a quite period to let the server settle down after doing the startup and install additional bundles work.
- waitForServerReady() - Method in class org.apache.sling.testing.serversetup.instance.SlingTestBase
-
Check a number of server URLs for readyness
All Classes All Packages