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.

  • Constructor Details

    • OsgiContext

      public OsgiContext()
      Initialize OSGi context.
  • Method Details

    • setUpContext

      protected void setUpContext()
      This is called by OsgiContextExtension to set up context.
    • tearDownContext

      protected void tearDownContext()
      This is called by OsgiContextExtension to tear down context.