Closed bjhargrave closed 4 years ago
Comment author: Georgi Boyvalenkov <georgi.boyvalenkov@bosch.io>
There is one problem method - testRelatedFragmentResolvable. At line 213 there is: context.checkWires(result, new AbstractResolverTestCase.TestWire[] { new AbstractResolverTestCase.TestWire(this, rootResource, resolvableReq, providerResource, resolvableCap) });
but IMO it should be: context.checkWires(result, new AbstractResolverTestCase.TestWire[] { new AbstractResolverTestCase.TestWire(this, rootResourceFrag, resolvableReq, providerResource, resolvableCap) });
as resolvableReq comes from rootResourceFrag.
Comment author: @tjwatson
This is a case that we call a hosted requirement/capability. There are several sections in the spec that discuss this. The following are examples:
https://osgi.org/specification/osgi.core/7.0.0/framework.wiring.html#framework.wiring-fragments
https://osgi.org/specification/osgi.core/7.0.0/framework.module.html#framework.module.dependencies
For this testcase the resolvableReq is a hosted requirement with namespace "resolvable" so the Wire is expected to have a host resource as the getRequirer because that host wiring is hosting the requirement for the fragment.
Original bug ID: BZ#3138 From: Georgi Boyvalenkov <georgi.boyvalenkov@bosch.io> Reported version: R7