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 void
This is called byOsgiContextExtension
to set up context.protected void
This is called byOsgiContextExtension
to 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 byOsgiContextExtension
to set up context. -
tearDownContext
protected void tearDownContext()This is called byOsgiContextExtension
to tear down context.
-