@Test public void testFindAllPathsRecursive() { final ResourcePathFileTraversal traverser = new ResourcePathFileTraversal(new File(m_baseDir + "/" + m_nodeId + "/" + m_resourceName)); final List<String> paths = traverser.traverseDirectory(); Collections.sort(paths); assertTrue(paths.get(0).matches(".*/10/nsVpnMonitor/tun_id_1")); assertTrue(paths.get(1).matches(".*/10/nsVpnMonitor/tun_id_2")); }
public List<String> traverseDirectory() { List<String> paths = new ArrayList<String>(); addTopLevelIfNecessary(paths); traverseDirectory(m_file, paths); return paths; }
ResourcePathFileTraversal { public List<String> traverseDirectory() { List<String> paths = new ArrayList<String>(); addTopLevelIfNecessary(paths); traverseDirectory(m_file, paths); return paths; } }
ResourcePathFileTraversal { public List<String> traverseDirectory() { List<String> paths = new ArrayList<String>(); addTopLevelIfNecessary(paths); traverseDirectory(m_file, paths); return paths; } ResourcePathFileTraversal(File f); }
ResourcePathFileTraversal { public List<String> traverseDirectory() { List<String> paths = new ArrayList<String>(); addTopLevelIfNecessary(paths); traverseDirectory(m_file, paths); return paths; } ResourcePathFileTraversal(File f); List<String> traverseDirectory(); void addDatasourceFilters(String[] dsNames); void addDatasourceFilter(String dataSource); }
ResourcePathFileTraversal { public List<String> traverseDirectory() { List<String> paths = new ArrayList<String>(); addTopLevelIfNecessary(paths); traverseDirectory(m_file, paths); return paths; } ResourcePathFileTraversal(File f); List<String> traverseDirectory(); void addDatasourceFilters(String[] dsNames); void addDatasourceFilter(String dataSource);  }