DepTreeNode implements Cloneable, Serializable { public void setDependencies(String[] defineDependencies, String[] requireDependencies, String[] dependentFeatures, long lastModifiedFile, long lastModifiedDep) { this.defineDependencies = defineDependencies; this.requireDependencies = requireDependencies; this.dependentFeatures = dependentFeatures; this.lastModified = lastModifiedFile; this.lastModifiedDep = lastModifiedDep; } 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 testSetDependencies() { DepTreeNode root = new DepTreeNode("root", null); String[] defineDeps = new String[]{"dep1", "dep2"}; String[] requireDeps = new String[]{"req1", "req2"}; root.setDependencies(defineDeps, requireDeps, new String[0], 0L, 1L); assert(Arrays.equals(root.getDefineDepArray(), defineDeps)); assert(Arrays.equals(root.getRequireDepArray(), requireDeps)); assertEquals(root.lastModified(), 0L); assertEquals(root.lastModifiedDep(), 1L); }