Class 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 Detail

      • CreateUserRule

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

      • 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
      • getClientSupplier

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