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.
User TemporaryUser instead.
Create and cleanup at the end a user belonging to the Authors group
  • Constructor Details

    • CreateUserRule

      public CreateUserRule(org.apache.sling.testing.junit.rules.instance.Instance instanceRule, String... groups)
      Deprecated.
  • Method Details

    • before

      protected void before() throws Throwable
      Deprecated.
      Overrides:
      before in class org.junit.rules.ExternalResource
      Throws:
      Throwable
    • after

      protected void after()
      Deprecated.
      Overrides:
      after in class org.junit.rules.ExternalResource
    • getClient

      public CQClient getClient()
      Deprecated.
      Specified by:
      getClient in interface UserRule
    • getClientSupplier

      public Supplier<org.apache.sling.testing.clients.SlingClient> getClientSupplier()
      Deprecated.
      Returns:
      a SlingClient Supplier