public class TemporaryContentAuthorGroup
extends org.junit.rules.ExternalResource
before method can be up to 30s.| Constructor and Description |
|---|
TemporaryContentAuthorGroup(Supplier<org.apache.sling.testing.clients.SlingClient> creatorSupplier)
Instantiate a new TemporaryContentAuthorGroup rule, to be used with the
@Rule annotation. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
protected String |
createUniqueAuthorizableId(String authorizableId)
Create unique authorizable Id to make sure no side effects from versioning / restore occurs
|
protected void |
deleteGroup()
Delete the created group.
|
CQClient |
getClient() |
Supplier<org.apache.sling.testing.clients.SlingClient> |
getClientSupplier() |
String |
getGroupName() |
public TemporaryContentAuthorGroup(Supplier<org.apache.sling.testing.clients.SlingClient> creatorSupplier)
@Rule annotation.creatorSupplier - supplier for the client used to create the temporary content author grouppublic CQClient getClient()
public String getGroupName()
public Supplier<org.apache.sling.testing.clients.SlingClient> getClientSupplier()
SlingClient Supplier matching the temporary content author groupprotected void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowableprotected void after()
after in class org.junit.rules.ExternalResourceprotected void deleteGroup()
Copyright © 2021. All rights reserved.