Class UsePackageRule

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

    public class UsePackageRule
    extends Object
    implements org.junit.rules.TestRule
    Install a content package from resources. Takes in an Instance rule, which has to be applied before this rule
    • Constructor Detail

      • UsePackageRule

        public UsePackageRule​(String srcPath,
                              org.apache.sling.testing.junit.rules.instance.Instance instance)
    • Method Detail

      • getSrcPath

        public String getSrcPath()
      • getInstance

        public org.apache.sling.testing.junit.rules.instance.Instance getInstance()
      • apply

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