Package com.adobe.cq.testing.junit.rules
Class OsgiConfigRestoreRule
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- com.adobe.cq.testing.junit.rules.OsgiConfigRestoreRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class OsgiConfigRestoreRule extends org.junit.rules.ExternalResourceMake a snapshot of the OSGi configuration of a given bundle and restore it to its original state after test execution.
-
-
Constructor Summary
Constructors Constructor Description OsgiConfigRestoreRule(org.apache.sling.testing.junit.rules.instance.Instance quickstartRule, String pid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafter()protected voidbefore()
-
-
-
Constructor Detail
-
OsgiConfigRestoreRule
public OsgiConfigRestoreRule(org.apache.sling.testing.junit.rules.instance.Instance quickstartRule, String pid)
-
-
Method Detail
-
before
protected void before() throws org.apache.sling.testing.clients.ClientException, org.apache.sling.testing.clients.util.config.InstanceConfigException, InterruptedException- Overrides:
beforein classorg.junit.rules.ExternalResource- Throws:
org.apache.sling.testing.clients.ClientExceptionorg.apache.sling.testing.clients.util.config.InstanceConfigExceptionInterruptedException
-
after
protected void after()
- Overrides:
afterin classorg.junit.rules.ExternalResource
-
-