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.ExternalResource
Make a snapshot of the OSGi configuration of a given bundle and restore it to its original state after test execution.
-
Constructor Summary
ConstructorsConstructorDescriptionOsgiConfigRestoreRule(org.apache.sling.testing.junit.rules.instance.Instance quickstartRule, String pid) -
Method Summary
Methods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
OsgiConfigRestoreRule
public OsgiConfigRestoreRule(org.apache.sling.testing.junit.rules.instance.Instance quickstartRule, String pid)
-
-
Method Details
-
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
-