@Test public void skipsCommentLines() throws IOException { URL manifest = getClass().getResource("manifest-valid-with-comments"); String prefix = manifest.toString().substring(0, manifest.toString().length() - "manifest".length()); List<URL> models = ModelDiscovery.findModels(manifest); assertThat(models, contains( new URL(prefix + "foo.smithy"), new URL(prefix + "baz/bar/example.json"), new URL(prefix + "test"), new URL(prefix + "test2"))); }
public static List<URL> findModels() { return findModels(Thread.currentThread().getContextClassLoader()); }
ModelDiscovery { public static List<URL> findModels() { return findModels(Thread.currentThread().getContextClassLoader()); } }
ModelDiscovery { public static List<URL> findModels() { return findModels(Thread.currentThread().getContextClassLoader()); } private  ModelDiscovery(); }
ModelDiscovery { public static List<URL> findModels() { return findModels(Thread.currentThread().getContextClassLoader()); } private  ModelDiscovery(); static List<URL> findModels(); static List<URL> findModels(ClassLoader loader); static List<URL> findModels(URL jarManifestUrl); static String getSmithyModelPathFromJarUrl(URL modelUrl); static URL createSmithyJarManifestUrl(String fileOrUrl); }
ModelDiscovery { public static List<URL> findModels() { return findModels(Thread.currentThread().getContextClassLoader()); } private  ModelDiscovery(); static List<URL> findModels(); static List<URL> findModels(ClassLoader loader); static List<URL> findModels(URL jarManifestUrl); static String getSmithyModelPathFromJarUrl(URL modelUrl); static URL createSmithyJarManifestUrl(String fileOrUrl);  }