SlingNodetypesScanner { public static List<URL> findNodeTypeDefinitions() throws IOException { return findNodeTypeDefinitions(Util.getDefaultClassLoader()); } private  SlingNodetypesScanner(); static List<URL> findNodeTypeDefinitions(); static List<URL> findNodeTypeDefinitions(final ClassLoader classLoader); static List<URL> findNodeTypeDefinitions(final List<File> zipFiles); static Map<String, URL> resolveNodeTypeDefinitions(final List<String> resourceNames); static Map<String, URL> resolveNodeTypeDefinitions(final List<String> resourceNames,
                                                              final ClassLoader classLoader); static Map<String, URL> resolveNodeTypeDefinitions(final List<String> resourceNames,
                                                              final List<File> zipFiles); static final String SLING_NODETYPES; }
@Test public void testFindNodeTypeDefinitions_zips() throws Exception { final File testBaseDir = new File(testTarget, "testFindNodeTypeDefinitions_zips"); FileUtils.deleteDirectory(testBaseDir); testBaseDir.mkdirs(); buildAllJars(testBaseDir); final List<URL> jarUrls = SlingNodetypesScanner .findNodeTypeDefinitions(getJars(testBaseDir).collect(Collectors.toList())); assertEquals("jar urls size should be: " + jarUrls, 8, jarUrls.size()); final List<URL> dirUrls = SlingNodetypesScanner .findNodeTypeDefinitions(getDirs().collect(Collectors.toList())); assertEquals("dir urls size should be: " + dirUrls, 8, dirUrls.size()); }