Class CQAuthorPublishClassRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class CQAuthorPublishClassRule
    extends Object
    implements org.junit.rules.TestRule
    • Field Detail

      • cqClassRule

        public final CQClassRule cqClassRule
        Granite rules to be executed at class level
      • authorRule

        public final org.apache.sling.testing.junit.rules.instance.Instance authorRule
        ExistingInstance to reserve an Author
      • publishRule

        public final org.apache.sling.testing.junit.rules.instance.Instance publishRule
        ExistingInstance to reserve a Publish
      • ruleChain

        protected org.junit.rules.TestRule ruleChain
    • Constructor Detail

      • CQAuthorPublishClassRule

        public CQAuthorPublishClassRule()
      • CQAuthorPublishClassRule

        public CQAuthorPublishClassRule​(boolean forceBasicAuth)
        Parameters:
        forceBasicAuth - Force basic authentication for author and publish instances.
      • CQAuthorPublishClassRule

        public CQAuthorPublishClassRule​(boolean forceBasicAuthAuthor,
                                        boolean forceBasicAuthPublish)
        Parameters:
        forceBasicAuthAuthor - Force basic authentication for author instance.
        forceBasicAuthPublish - Force basic authentication for publish instance.
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule