public interface Instance extends org.junit.rules.TestRule, BuilderCustomizer
Modifier and Type | Method and Description |
---|---|
org.apache.sling.testing.clients.SlingClient |
getAdminClient()
Return a new client pointing to the instance corresponding to this {{AbstractInstance}},
with the admin user and password, if it was not previously created, or the existing client if it has been created before
See
InstanceSetup.INSTANCE_CONFIG_ADMINUSER and InstanceSetup.INSTANCE_CONFIG_ADMINPASSWORD |
<T extends org.apache.sling.testing.clients.SlingClient> |
getAdminClient(Class<T> clientClass)
Return a new client pointing to the instance corresponding to this {{AbstractInstance}},
with the admin user and password, if it was not previously created, or the existing client if it has been created before
See
InstanceSetup.INSTANCE_CONFIG_ADMINUSER and InstanceSetup.INSTANCE_CONFIG_ADMINPASSWORD |
<T extends org.apache.sling.testing.clients.SlingClient> |
getClient(Class<T> clientClass,
String user,
String pass)
Return a new client pointing to the instance corresponding to this {{AbstractInstance}}
if it was never created with this username and password, or the existing client if it has been created before
|
org.apache.sling.testing.clients.instance.InstanceConfiguration |
getConfiguration() |
org.apache.sling.testing.clients.SlingClient |
newAdminClient(BuilderCustomizer... customizers)
Return a new client pointing to the instance corresponding to this {{AbstractInstance}},
replacing the internally-cached client with this username and password
See
InstanceSetup.INSTANCE_CONFIG_ADMINUSER and InstanceSetup.INSTANCE_CONFIG_ADMINPASSWORD |
<T extends org.apache.sling.testing.clients.SlingClient> |
newClient(Class<T> clientClass,
String user,
String pass,
BuilderCustomizer... customizers)
Return a new client pointing to the instance corresponding to this {{AbstractInstance}},
replacing the internally-cached client with this username and password
|
Instance |
orDefault(org.apache.sling.testing.clients.instance.InstanceConfiguration instanceConfiguration) |
Instance |
withRunMode(String runMode) |
customize
Instance orDefault(org.apache.sling.testing.clients.instance.InstanceConfiguration instanceConfiguration)
org.apache.sling.testing.clients.instance.InstanceConfiguration getConfiguration()
<T extends org.apache.sling.testing.clients.SlingClient> T getClient(Class<T> clientClass, String user, String pass)
T
- the type of the returned clientclientClass
- the class of the returned clientuser
- the username used in the clientpass
- the password used in the clientorg.apache.sling.testing.clients.SlingClient getAdminClient()
InstanceSetup.INSTANCE_CONFIG_ADMINUSER
and InstanceSetup.INSTANCE_CONFIG_ADMINPASSWORD
<T extends org.apache.sling.testing.clients.SlingClient> T getAdminClient(Class<T> clientClass)
InstanceSetup.INSTANCE_CONFIG_ADMINUSER
and InstanceSetup.INSTANCE_CONFIG_ADMINPASSWORD
T
- the class of the returned clientclientClass
- the class of the returned client<T extends org.apache.sling.testing.clients.SlingClient> T newClient(Class<T> clientClass, String user, String pass, BuilderCustomizer... customizers)
T
- the type of the returned clientclientClass
- the class of the returned clientuser
- the username used in the clientpass
- the password used in the clientcustomizers
- array of customizers for this clientorg.apache.sling.testing.clients.SlingClient newAdminClient(BuilderCustomizer... customizers)
InstanceSetup.INSTANCE_CONFIG_ADMINUSER
and InstanceSetup.INSTANCE_CONFIG_ADMINPASSWORD
customizers
- array of customizers for this clientCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.