Class InstanceConfigRule
- java.lang.Object
-
- org.apache.sling.testing.junit.rules.InstanceConfigRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class InstanceConfigRule extends Object implements org.junit.rules.TestRule
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description InstanceConfigRule()
Uses an EmptyInstanceConfig (e.g.InstanceConfigRule(T instanceConfig)
InstanceConfigRule(T instanceConfig, boolean withRestore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
<T extends Action>
InstanceConfigRulewithAction(T action)
-
-
-
Method Detail
-
withAction
public <T extends Action> InstanceConfigRule withAction(T action)
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
- Specified by:
apply
in interfaceorg.junit.rules.TestRule
-
-