@Test public void doesNotLoadIfFileDoesNotExist() { Exception e = assertThrows(RuntimeException.class, () -> loadFromPath("/sadiusadasd")); assertThat(e.getMessage(), matchesPattern("Unable to load YAML from.*")); }
public static YamlApplicationsProvider loadFromPath(String path) { return new YamlApplicationsProvider(newResource(path)); }
YamlApplicationsProvider { public static YamlApplicationsProvider loadFromPath(String path) { return new YamlApplicationsProvider(newResource(path)); } }
YamlApplicationsProvider { public static YamlApplicationsProvider loadFromPath(String path) { return new YamlApplicationsProvider(newResource(path)); } private  YamlApplicationsProvider(String yamlText);  YamlApplicationsProvider(Resource resource); }
YamlApplicationsProvider { public static YamlApplicationsProvider loadFromPath(String path) { return new YamlApplicationsProvider(newResource(path)); } private  YamlApplicationsProvider(String yamlText);  YamlApplicationsProvider(Resource resource); static YamlApplicationsProvider loadFromPath(String path); static YamlApplicationsProvider loadFromText(String yamlText); static BackendServices loadApplicationsFrom(String path); BackendServices get(); }
YamlApplicationsProvider { public static YamlApplicationsProvider loadFromPath(String path) { return new YamlApplicationsProvider(newResource(path)); } private  YamlApplicationsProvider(String yamlText);  YamlApplicationsProvider(Resource resource); static YamlApplicationsProvider loadFromPath(String path); static YamlApplicationsProvider loadFromText(String yamlText); static BackendServices loadApplicationsFrom(String path); BackendServices get();  }