Class UsePackageRule
java.lang.Object
com.adobe.cq.testing.junit.rules.usepackage.UsePackageRule
- All Implemented Interfaces:
org.junit.rules.TestRule
Install a content package from resources.
Takes in an
Instance
rule, which has to be applied before this rule-
Constructor Summary
ConstructorDescriptionUsePackageRule
(String srcPath, org.apache.sling.testing.junit.rules.instance.Instance instance) -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement statement, org.junit.runner.Description description) org.apache.sling.testing.junit.rules.instance.Instance
-
Constructor Details
-
UsePackageRule
public UsePackageRule(String srcPath, org.apache.sling.testing.junit.rules.instance.Instance instance)
-
-
Method Details
-
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 interfaceorg.junit.rules.TestRule
-