Class CreateUserRule
java.lang.Object
org.junit.rules.ExternalResource
com.adobe.cq.testing.client.security.CreateUserRule
- All Implemented Interfaces:
UserRule
,org.junit.rules.TestRule
@Deprecated
public class CreateUserRule
extends org.junit.rules.ExternalResource
implements UserRule
Deprecated.
Create and cleanup at the end a user belonging to the Authors group
-
Constructor Summary
ConstructorDescriptionCreateUserRule
(org.apache.sling.testing.junit.rules.instance.Instance instanceRule, String... groups) Deprecated. -
Method Summary
Methods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
CreateUserRule
public CreateUserRule(org.apache.sling.testing.junit.rules.instance.Instance instanceRule, String... groups) Deprecated.
-
-
Method Details
-
before
Deprecated.- Overrides:
before
in classorg.junit.rules.ExternalResource
- Throws:
Throwable
-
after
protected void after()Deprecated.- Overrides:
after
in classorg.junit.rules.ExternalResource
-
getClient
Deprecated. -
getClientSupplier
Deprecated.- Returns:
- a
SlingClient
Supplier
-
TemporaryUser
instead.