Mock implementations of OSGi services

Java OSGi library bundles containing classes implementing OSGi service interfaces and intended for wrapping injected OSGi services. The idea is to avoid clutter from guarding against NullPointerReference exceptions in the code using the injected services.

License

License

GroupId

GroupId

no.priv.bang.osgi.service.adapters
ArtifactId

ArtifactId

service-mocks
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

Mock implementations of OSGi services
Java OSGi library bundles containing classes implementing OSGi service interfaces and intended for wrapping injected OSGi services. The idea is to avoid clutter from guarding against NullPointerReference exceptions in the code using the injected services.

Download service-mocks

How to add to project

<!-- https://jarcasting.com/artifacts/no.priv.bang.osgi.service.adapters/service-mocks/ -->
<dependency>
    <groupId>no.priv.bang.osgi.service.adapters</groupId>
    <artifactId>service-mocks</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/no.priv.bang.osgi.service.adapters/service-mocks/
implementation 'no.priv.bang.osgi.service.adapters:service-mocks:1.2.0'
// https://jarcasting.com/artifacts/no.priv.bang.osgi.service.adapters/service-mocks/
implementation ("no.priv.bang.osgi.service.adapters:service-mocks:1.2.0")
'no.priv.bang.osgi.service.adapters:service-mocks:jar:1.2.0'
<dependency org="no.priv.bang.osgi.service.adapters" name="service-mocks" rev="1.2.0">
  <artifact name="service-mocks" type="jar" />
</dependency>
@Grapes(
@Grab(group='no.priv.bang.osgi.service.adapters', module='service-mocks', version='1.2.0')
)
libraryDependencies += "no.priv.bang.osgi.service.adapters" % "service-mocks" % "1.2.0"
[no.priv.bang.osgi.service.adapters/service-mocks "1.2.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.slf4j : slf4j-api jar

provided (2)

Group / Artifact Type Version
org.osgi : osgi.core jar
org.osgi : org.osgi.service.log jar

test (5)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar
org.junit.jupiter : junit-jupiter-engine jar
org.assertj : assertj-core jar
org.hamcrest : hamcrest-library jar 1.3
org.mockito : mockito-core jar

Project Modules

There are no modules declared in this project.

Versions

Version
1.2.0
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1