@Test public void testResourcesFromPath() throws Exception { final List<String> paths = Classpaths.resources(this.getClass(), "/org/node/file1.txt"); String path = paths.get(0); boolean ok = true; ok |= Str.in("abc", IO.read(path)) || die(); }
@Test public void test2NoRoot() throws Exception { final List<URL> urls = Classpaths.classpathResources(this.getClass(), "org/node/file1.txt"); URL url = urls.get(0); boolean ok = true; ok |= Str.in("abc", IO.read(url.openStream())) || die(); }