DepTreeNode implements Cloneable, Serializable { public long lastModifiedDepTree() { return lastModifiedDepTree(-1); } DepTreeNode(String name, URI uri); String getName(); long lastModified(); long lastModifiedDep(); long lastModifiedDepTree(); DepTreeNode getParent(); DepTreeNode getRoot(); String[] getDefineDepArray(); String[] getRequireDepArray(); String[] getDependentFeatures(); String getParentPath(); String getFullPathName(); void add(DepTreeNode child); void overlay(DepTreeNode node); void addAll(Collection<DepTreeNode> children); DepTreeNode createOrGet(String path, URI uri); DepTreeNode getDescendent(String path); void remove(DepTreeNode child); void removeAll(); Map<String, DepTreeNode> getChildren(); DepTreeNode getChild(String name); void prune(); void setDependencies(String[] defineDependencies, String[] requireDependencies, String[] dependentFeatures, long lastModifiedFile, long lastModifiedDep); @Override String toString(); String toStringTree(); @Override DepTreeNode clone(); IConfig getConfig();  }
@Test public void testLastModifiedDepTree() { DepTreeNode a = new DepTreeNode("a", null); DepTreeNode aa = new DepTreeNode("aa", null); DepTreeNode ab = new DepTreeNode("ab", null); a.add(aa); a.add(ab); a.setDependencies(new String[]{"b", "c"}, new String[0], new String[0], 1234567890L, 1234567890L); aa.setDependencies(new String[]{"b", "c"}, new String[0], new String[0], 1234567890L, 1234567890L); ab.setDependencies(new String[]{"b", "c"}, new String[0], new String[0], 1234567890L, 2000000000L); assertEquals(a.lastModifiedDepTree(), 2000000000L); }