SolaceJmsAutoConfigurationBase implements SpringSolJmsConnectionFactoryCloudFactory, SpringSolJmsJndiTemplateCloudFactory { @Bean @Override public SolConnectionFactory getSolConnectionFactory() { return getSolConnectionFactory(findFirstSolaceServiceCredentialsImpl()); } SolaceJmsAutoConfigurationBase(SolaceJmsProperties properties); @Override abstract List<SolaceServiceCredentials> getSolaceServiceCredentials(); @Bean @Override SolaceServiceCredentials findFirstSolaceServiceCredentials(); @Bean @Override SolConnectionFactory getSolConnectionFactory(); @Override SolConnectionFactory getSolConnectionFactory(String id); @Override SolConnectionFactory getSolConnectionFactory(SolaceServiceCredentials solaceServiceCredentials); @Override @Deprecated List<SolaceMessagingInfo> getSolaceMessagingInfos(); @Bean @Override JndiTemplate getJndiTemplate(); @Override JndiTemplate getJndiTemplate(SolaceServiceCredentials solaceServiceCredentials); @Override JndiTemplate getJndiTemplate(String id);  }
@Test public void testGetSolConnectionFactory() { validateSolConnectionFactory(jmsAutoConfBase.getSolConnectionFactory(), false); disableSolaceServiceCredentials(); validateSolConnectionFactory(jmsAutoConfBase.getSolConnectionFactory(), true); }
@Test public void testGetSolConnectionFactoryByCreds() { validateSolConnectionFactory(jmsAutoConfBase.getSolConnectionFactory(solaceServiceCredentials), false); disableSolaceServiceCredentials(); validateSolConnectionFactory(jmsAutoConfBase.getSolConnectionFactory(solaceServiceCredentials), false); }
@Test public void testGetSolConnectionFactoryById() { validateSolConnectionFactory(jmsAutoConfBase.getSolConnectionFactory(solaceServiceCredentials.getId()), false); disableSolaceServiceCredentials(); assertNull((jmsAutoConfBase.getSolConnectionFactory(solaceServiceCredentials.getId()))); }