Registry / testing / org-apache-sling-testing-osgi-mock

org-apache-sling-testing-osgi-mock

JSON →
library3.5.8javamavenunverified

Provides mock implementations for OSGi testing in Apache Sling; this artifact is deprecated in favor of junit4 variant.

<dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.testing.osgi-mock</artifactId> <version>3.5.8</version> </dependency>
INSTALL
IMPORT
SIG · ORG-APACHE-SLING-T
O
org-apache-sling-testing-osgi-mock
testingjavav3.5.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MockBundleContext
org.apache.sling.testing.osgi.mock.MockBundleContext

Minimal usage showing creation of a mock bundle context.

import org.apache.sling.testing.osgi.mock.MockBundleContext; public class Example { public static void main(String[] args) { MockBundleContext context = new MockBundleContext(); System.out.println("OSGi Mock ready"); } }
Debug
Known issues
breakingThis artifact is deprecated; use org.apache.sling.testing.osgi-mock.junit4 instead.
fix
Replace dependency with org.apache.sling:org.apache.sling.testing.osgi-mock.junit4.
affects: >=3.0.0
Upgrade
Version history
3.5.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
org-apache-sling-testing-osgi-mock — mvn dependency:get org-apache-sling-testing-osgi-mock · libregistry