Class UsePackageRule
- java.lang.Object
-
- com.adobe.cq.testing.junit.rules.usepackage.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 anInstancerule, which has to be applied before this rule
-
-
Constructor Summary
Constructors Constructor Description UsePackageRule(String srcPath, org.apache.sling.testing.junit.rules.instance.Instance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)org.apache.sling.testing.junit.rules.instance.InstancegetInstance()StringgetSrcPath()
-
-
-
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:
applyin interfaceorg.junit.rules.TestRule
-
-