Class CQClassRule

java.lang.Object
com.adobe.cq.testing.junit.rules.CQClassRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class CQClassRule extends Object implements org.junit.rules.TestRule
Junit rule to be used in every test class (to be applied at class level). It chains the SlingClassRule.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.sling.testing.clients.instance.InstanceConfiguration
     
    static final org.apache.sling.testing.clients.instance.InstanceConfiguration
     
    protected org.junit.rules.TestRule
     
    final org.apache.sling.testing.junit.rules.SlingClassRule
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.junit.runners.model.Statement
    apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_AUTHOR_CONFIG

      public static final org.apache.sling.testing.clients.instance.InstanceConfiguration DEFAULT_AUTHOR_CONFIG
    • DEFAULT_PUBLISH_CONFIG

      public static final org.apache.sling.testing.clients.instance.InstanceConfiguration DEFAULT_PUBLISH_CONFIG
    • slingBaseClassRule

      public final org.apache.sling.testing.junit.rules.SlingClassRule slingBaseClassRule
    • ruleChain

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

    • CQClassRule

      public CQClassRule()
  • Method Details

    • 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