Skip to content

Commit

Permalink
Bug 564818 API revision | conditions | key keepers review
Browse files Browse the repository at this point in the history
 - extend Framework Contract test set with `StreamCodecs` and
`KeyKeeper`s supplement expectation checks

Signed-off-by: elena.parovyshnaya <elena.parovyshnaya@gmail.com>
  • Loading branch information
eparovyshnaya committed Jul 5, 2020
1 parent 4a418de commit 9894646
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -97,6 +97,11 @@ public final void prohibitsInjectionIntoStreamCodecServices() {
assertServiceInjectionsIsProhibited(config().codecs().get(), new FakeStreamCodec());
}

@Test
public final void canEncodeAndDecodeForProduct() {
assertTrue(config().codecs().get().hasService(framework().get().product()));
}

@Test
public final void keepsPublicKeyForProduct() {
assertServiceRegistryIsFunctional(config().keyKeepers().get());
Expand All @@ -112,6 +117,11 @@ public final void prohibitsInjectionIntoKeyKeeperServices() {
assertServiceInjectionsIsProhibited(config().keyKeepers().get(), new FakeKeyKeeper());
}

@Test
public final void keepsKepForProduct() {
assertTrue(config().keyKeepers().get().hasService(framework().get().product()));
}

private <I extends ServiceId, S extends Service<I>> void assertServiceRegistryIsFunctional(
Registry<I, S> registry) {
assertNotNull(registry);
Expand Down

0 comments on commit 9894646

Please sign in to comment.