@Test public void tokenProvider () { PasswordGrantTokenProvider tokenProvider = (PasswordGrantTokenProvider) cloudFoundryService.tokenProvider(); assertEquals(password, tokenProvider.getPassword()); assertEquals(username, tokenProvider.getUsername()); }
@Bean @RefreshScope TokenProvider tokenProvider () { return PasswordGrantTokenProvider.builder().password(password).username(username).build(); }
CloudFoundryService implements CloudService { @Bean @RefreshScope TokenProvider tokenProvider () { return PasswordGrantTokenProvider.builder().password(password).username(username).build(); } }
CloudFoundryService implements CloudService { @Bean @RefreshScope TokenProvider tokenProvider () { return PasswordGrantTokenProvider.builder().password(password).username(username).build(); }  }
CloudFoundryService implements CloudService { @Bean @RefreshScope TokenProvider tokenProvider () { return PasswordGrantTokenProvider.builder().password(password).username(username).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 TokenProvider tokenProvider () { return PasswordGrantTokenProvider.builder().password(password).username(username).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);  }