public interface Instance
extends org.junit.rules.TestRule
| 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.
|
<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.
|
<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}}
|
org.apache.sling.testing.clients.instance.InstanceConfiguration |
getConfiguration() |
Instance |
orDefault(org.apache.sling.testing.clients.instance.InstanceConfiguration instanceConfiguration) |
Instance |
withRunMode(String runMode) |
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_ADMINPASSWORDT - the class of the returned clientclientClass - the class of the returned clientCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.