@Test void getLocalPathWhenConfigServerNotConfigured() { resourceService = new CloudConfigResourceService(); RuntimeException exception = assertThrows( RuntimeException.class, () -> resourceService.getLocalPath(CLOUD_TEST_FILE_NAME)); assertThat(exception.getMessage()).contains(CLOUD_TEST_FILE_NAME); }
public String getLocalPath(String path) { String contents = retrieveFromConfigServer(path); return ConfigFileUtils.writeToTempFile(contents, getResourceName(path)); }
CloudConfigResourceService implements EnvironmentAware { public String getLocalPath(String path) { String contents = retrieveFromConfigServer(path); return ConfigFileUtils.writeToTempFile(contents, getResourceName(path)); } }
CloudConfigResourceService implements EnvironmentAware { public String getLocalPath(String path) { String contents = retrieveFromConfigServer(path); return ConfigFileUtils.writeToTempFile(contents, getResourceName(path)); } CloudConfigResourceService();  CloudConfigResourceService(
      ResourceRepository resourceRepository, EnvironmentRepository environmentRepository); }
CloudConfigResourceService implements EnvironmentAware { public String getLocalPath(String path) { String contents = retrieveFromConfigServer(path); return ConfigFileUtils.writeToTempFile(contents, getResourceName(path)); } CloudConfigResourceService();  CloudConfigResourceService(
      ResourceRepository resourceRepository, EnvironmentRepository environmentRepository); String getLocalPath(String path); @Override void setEnvironment(org.springframework.core.env.Environment environment); static boolean isCloudConfigResource(String path); }
CloudConfigResourceService implements EnvironmentAware { public String getLocalPath(String path) { String contents = retrieveFromConfigServer(path); return ConfigFileUtils.writeToTempFile(contents, getResourceName(path)); } CloudConfigResourceService();  CloudConfigResourceService(
      ResourceRepository resourceRepository, EnvironmentRepository environmentRepository); String getLocalPath(String path); @Override void setEnvironment(org.springframework.core.env.Environment environment); static boolean isCloudConfigResource(String path);  }