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 anInstance
rule, 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.Statement
apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
org.apache.sling.testing.junit.rules.instance.Instance
getInstance()
String
getSrcPath()
-
-
-
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 interfaceorg.junit.rules.TestRule
-
-