Class OsgiContext
java.lang.Object
org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
org.apache.sling.testing.mock.osgi.junit5.OsgiContext
OSGi Mock parameter object.
Additionally you can subclass this class and provide further parameters via
OsgiContextBuilder.
-
Field Summary
Fields inherited from class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
componentContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis is called byOsgiContextExtensionto set up context.protected voidThis is called byOsgiContextExtensionto tear down context.Methods inherited from class org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
bundleContext, componentContext, getService, getServices, registerInjectActivateService, registerInjectActivateService, registerInjectActivateService, registerInjectActivateService, registerInjectActivateService, registerInjectActivateService, registerService, registerService, registerService, registerService, setUp, tearDown
-
Constructor Details
-
OsgiContext
public OsgiContext()Initialize OSGi context.
-
-
Method Details
-
setUpContext
protected void setUpContext()This is called byOsgiContextExtensionto set up context. -
tearDownContext
protected void tearDownContext()This is called byOsgiContextExtensionto tear down context.
-