@Test void linkWithPrivateKey() { ListenPortLinker linker = new ListenPortLinker(); ListenPort port = new ListenPort(); port.setName("Port"); port.setTlsSettings(new ListenPortTlsSettings()); port.getTlsSettings().setPrivateKey("Key"); PrivateKey key = new PrivateKey(); key.setId("Key"); key.setName("Key"); Bundle bundle = new Bundle(); bundle.getPrivateKeys().put(key.getId(), key); linker.link(port, bundle, bundle); assertNotNull(port.getTlsSettings().getPrivateKey()); assertEquals("Key", port.getTlsSettings().getPrivateKey()); }
@Override public void link(ListenPort entity, Bundle bundle, Bundle targetBundle) { linkService(bundle, entity); linkPrivateKey(entity, bundle); }
ListenPortLinker implements EntityLinker<ListenPort> { @Override public void link(ListenPort entity, Bundle bundle, Bundle targetBundle) { linkService(bundle, entity); linkPrivateKey(entity, bundle); } }
ListenPortLinker implements EntityLinker<ListenPort> { @Override public void link(ListenPort entity, Bundle bundle, Bundle targetBundle) { linkService(bundle, entity); linkPrivateKey(entity, bundle); }  }
ListenPortLinker implements EntityLinker<ListenPort> { @Override public void link(ListenPort entity, Bundle bundle, Bundle targetBundle) { linkService(bundle, entity); linkPrivateKey(entity, bundle); }  @Override Class<ListenPort> getEntityClass(); @Override void link(ListenPort entity, Bundle bundle, Bundle targetBundle); }
ListenPortLinker implements EntityLinker<ListenPort> { @Override public void link(ListenPort entity, Bundle bundle, Bundle targetBundle) { linkService(bundle, entity); linkPrivateKey(entity, bundle); }  @Override Class<ListenPort> getEntityClass(); @Override void link(ListenPort entity, Bundle bundle, Bundle targetBundle);  }