Class CQRule

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

public class CQRule extends Object implements org.junit.rules.TestRule
Base rule to be used on every test. It chains the SlingRule.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.junit.rules.TestRule
     
    final org.apache.sling.testing.junit.rules.SlingRule
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CQRule(org.apache.sling.testing.junit.rules.instance.Instance... instances)
     
  • 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

    • slingBaseRule

      public final org.apache.sling.testing.junit.rules.SlingRule slingBaseRule
    • cqRuleChain

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

    • CQRule

      public CQRule(org.apache.sling.testing.junit.rules.instance.Instance... instances)
  • 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