@Test void getLocalPathWhenFileDoesNotExist() { RuntimeException exception = assertThrows(RuntimeException.class, () -> configFileService.getLocalPath(TEST_FILE_PATH)); assertThat(exception.getMessage()).contains(TEST_FILE_PATH); }
public String getLocalPath(String path) { if (CloudConfigResourceService.isCloudConfigResource(path) && cloudConfigResourceService != null) { path = cloudConfigResourceService.getLocalPath(path); } verifyLocalPath(path); return path; }
ConfigFileService { public String getLocalPath(String path) { if (CloudConfigResourceService.isCloudConfigResource(path) && cloudConfigResourceService != null) { path = cloudConfigResourceService.getLocalPath(path); } verifyLocalPath(path); return path; } }
ConfigFileService { public String getLocalPath(String path) { if (CloudConfigResourceService.isCloudConfigResource(path) && cloudConfigResourceService != null) { path = cloudConfigResourceService.getLocalPath(path); } verifyLocalPath(path); return path; } ConfigFileService(CloudConfigResourceService cloudConfigResourceService); }
ConfigFileService { public String getLocalPath(String path) { if (CloudConfigResourceService.isCloudConfigResource(path) && cloudConfigResourceService != null) { path = cloudConfigResourceService.getLocalPath(path); } verifyLocalPath(path); return path; } ConfigFileService(CloudConfigResourceService cloudConfigResourceService); String getLocalPath(String path); String getLocalPathForContents(String contents, String path); String getContents(String path); }
ConfigFileService { public String getLocalPath(String path) { if (CloudConfigResourceService.isCloudConfigResource(path) && cloudConfigResourceService != null) { path = cloudConfigResourceService.getLocalPath(path); } verifyLocalPath(path); return path; } ConfigFileService(CloudConfigResourceService cloudConfigResourceService); String getLocalPath(String path); String getLocalPathForContents(String contents, String path); String getContents(String path);  }