@Test public void connectionContext () { DefaultConnectionContext connectionContext = (DefaultConnectionContext) cloudFoundryService.connectionContext(); testDefaultConnectionContext(connectionContext); }
@Bean @RefreshScope ConnectionContext connectionContext () { DefaultConnectionContext.Builder connectionContextBuilder; connectionContextBuilder = DefaultConnectionContext.builder().apiHost(apiHost).port(port); proxyConfiguration().ifPresent(connectionContextBuilder::proxyConfiguration); return connectionContextBuilder.build(); }
CloudFoundryService implements CloudService { @Bean @RefreshScope ConnectionContext connectionContext () { DefaultConnectionContext.Builder connectionContextBuilder; connectionContextBuilder = DefaultConnectionContext.builder().apiHost(apiHost).port(port); proxyConfiguration().ifPresent(connectionContextBuilder::proxyConfiguration); return connectionContextBuilder.build(); } }
CloudFoundryService implements CloudService { @Bean @RefreshScope ConnectionContext connectionContext () { DefaultConnectionContext.Builder connectionContextBuilder; connectionContextBuilder = DefaultConnectionContext.builder().apiHost(apiHost).port(port); proxyConfiguration().ifPresent(connectionContextBuilder::proxyConfiguration); return connectionContextBuilder.build(); }  }
CloudFoundryService implements CloudService { @Bean @RefreshScope ConnectionContext connectionContext () { DefaultConnectionContext.Builder connectionContextBuilder; connectionContextBuilder = DefaultConnectionContext.builder().apiHost(apiHost).port(port); proxyConfiguration().ifPresent(connectionContextBuilder::proxyConfiguration); return connectionContextBuilder.build(); }  void setApiHost(String apiHost); void setPort(Integer port); void setUsername(String username); void setPassword(String password); void setOrganization(String organization); void setSpace(String space); }
CloudFoundryService implements CloudService { @Bean @RefreshScope ConnectionContext connectionContext () { DefaultConnectionContext.Builder connectionContextBuilder; connectionContextBuilder = DefaultConnectionContext.builder().apiHost(apiHost).port(port); proxyConfiguration().ifPresent(connectionContextBuilder::proxyConfiguration); return connectionContextBuilder.build(); }  void setApiHost(String apiHost); void setPort(Integer port); void setUsername(String username); void setPassword(String password); void setOrganization(String organization); void setSpace(String space);  }