public class SlingInstanceRule extends Object implements org.junit.rules.TestRule
SlingClassRule
Modifier and Type | Field and Description |
---|---|
static org.apache.sling.testing.clients.instance.InstanceConfiguration |
DEFAULT_INSTANCE |
Instance |
defaultInstance
ExistingInstance for default instance
|
protected org.junit.rules.TestRule |
ruleChain |
SlingClassRule |
slingClassRule
Sling rules to be executed at class level
|
Constructor and Description |
---|
SlingInstanceRule() |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
org.apache.sling.testing.clients.SlingClient |
getAdminClient() |
<T extends org.apache.sling.testing.clients.SlingClient> |
getAdminClient(Class<T> clientClass) |
public static final org.apache.sling.testing.clients.instance.InstanceConfiguration DEFAULT_INSTANCE
public final SlingClassRule slingClassRule
public final Instance defaultInstance
protected org.junit.rules.TestRule ruleChain
public <T extends org.apache.sling.testing.clients.SlingClient> T getAdminClient(Class<T> clientClass)
public org.apache.sling.testing.clients.SlingClient getAdminClient()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.