Class OsgiContext
- java.lang.Object
-
- org.apache.sling.testing.mock.osgi.context.OsgiContextImpl
-
- org.apache.sling.testing.mock.osgi.junit5.OsgiContext
-
@ConsumerType public final class OsgiContext extends OsgiContextImpl
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 Constructor Description OsgiContext()Initialize OSGi context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUpContext()This is called byOsgiContextExtensionto set up context.protected voidtearDownContext()This 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
-
-
-
-
Method Detail
-
setUpContext
protected void setUpContext()
This is called byOsgiContextExtensionto set up context.
-
tearDownContext
protected void tearDownContext()
This is called byOsgiContextExtensionto tear down context.
-
-