Class ClassRuleUtils

java.lang.Object
com.adobe.cq.testing.junit.rules.ClassRuleUtils

public class ClassRuleUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.sling.testing.junit.rules.instance.Instance
    Create a new Instance object depending on the default auth mechanism
    static org.apache.sling.testing.junit.rules.instance.Instance
    newInstanceRule(boolean forceBasicAuth)
    Create a new Instance object depending on the default auth mechanism

    Methods inherited from class java.lang.Object

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

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • ClassRuleUtils

      public ClassRuleUtils()
  • Method Details

    • newInstanceRule

      public static org.apache.sling.testing.junit.rules.instance.Instance newInstanceRule(boolean forceBasicAuth)
      Create a new Instance object depending on the default auth mechanism
      Parameters:
      forceBasicAuth - set to true to always use basic auth
      Returns:
      the instance object
    • newInstanceRule

      public static org.apache.sling.testing.junit.rules.instance.Instance newInstanceRule()
      Create a new Instance object depending on the default auth mechanism
      Returns:
      the instance object