public abstract class AbstractInstance extends Object implements Instance
| Constructor and Description |
|---|
AbstractInstance() |
| 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}}
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, orDefault, withRunModepublic <T extends org.apache.sling.testing.clients.SlingClient> T getClient(Class<T> clientClass, String user, String pass)
public <T extends org.apache.sling.testing.clients.SlingClient> T getAdminClient(Class<T> clientClass)
InstanceSetup.INSTANCE_CONFIG_ADMINUSER and InstanceSetup.INSTANCE_CONFIG_ADMINPASSWORDgetAdminClient in interface InstanceT - the class of the returned clientclientClass - the class of the returned clientpublic org.apache.sling.testing.clients.SlingClient getAdminClient()
InstanceSetup.INSTANCE_CONFIG_ADMINUSER and InstanceSetup.INSTANCE_CONFIG_ADMINPASSWORDgetAdminClient in interface InstanceCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.