@Test void testLinkMissingInboundAssociatedService() { Bundle bundle = new Bundle(); final ServiceResolutionSettings serviceResolutionSettings = new ServiceResolutionSettings(); serviceResolutionSettings.setServiceRef("associated-service-id"); final InboundJmsDestinationDetail inboundDetail = new InboundJmsDestinationDetail(); inboundDetail.setAcknowledgeType(ON_TAKE); inboundDetail.setReplyType(NO_REPLY); inboundDetail.setUseRequestCorrelationId(false); inboundDetail.setServiceResolutionSettings(serviceResolutionSettings); final JmsDestination jmsDestination = createJmsDestinationBuilder(null,null) .inboundDetail(inboundDetail) .build(); assertThrows(LinkerException.class, () -> linker.link(jmsDestination, bundle, bundle)); }
@Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); }
JmsDestinationLinker implements EntityLinker<JmsDestination> { @Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); } }
JmsDestinationLinker implements EntityLinker<JmsDestination> { @Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); }  }
JmsDestinationLinker implements EntityLinker<JmsDestination> { @Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); }  @Override Class<JmsDestination> getEntityClass(); @Override void link(JmsDestination entity, Bundle bundle, Bundle targetBundle); }
JmsDestinationLinker implements EntityLinker<JmsDestination> { @Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); }  @Override Class<JmsDestination> getEntityClass(); @Override void link(JmsDestination entity, Bundle bundle, Bundle targetBundle);  }