@Test(expected = NullPointerException.class) public void testNullInput2() { Node node = dependencyGraph.getNode("v1"); NodeMapper.toDTO(node, null); }
public static NodeDTO toDTO(Node node, DependencyGraph dependencyGraph) { checkNotNull(node, "node"); checkNotNull(dependencyGraph, "dependencyGraph"); NodeDTO result = new NodeDTO(); mapProperties(node, result); mapHierarchy(node, dependencyGraph, result); mapDependencies(result, node, dependencyGraph); return result; }
NodeMapper { public static NodeDTO toDTO(Node node, DependencyGraph dependencyGraph) { checkNotNull(node, "node"); checkNotNull(dependencyGraph, "dependencyGraph"); NodeDTO result = new NodeDTO(); mapProperties(node, result); mapHierarchy(node, dependencyGraph, result); mapDependencies(result, node, dependencyGraph); return result; } }
NodeMapper { public static NodeDTO toDTO(Node node, DependencyGraph dependencyGraph) { checkNotNull(node, "node"); checkNotNull(dependencyGraph, "dependencyGraph"); NodeDTO result = new NodeDTO(); mapProperties(node, result); mapHierarchy(node, dependencyGraph, result); mapDependencies(result, node, dependencyGraph); return result; } private  NodeMapper(); }
NodeMapper { public static NodeDTO toDTO(Node node, DependencyGraph dependencyGraph) { checkNotNull(node, "node"); checkNotNull(dependencyGraph, "dependencyGraph"); NodeDTO result = new NodeDTO(); mapProperties(node, result); mapHierarchy(node, dependencyGraph, result); mapDependencies(result, node, dependencyGraph); return result; } private  NodeMapper(); static NodeDTO toDTO(Node node, DependencyGraph dependencyGraph); }
NodeMapper { public static NodeDTO toDTO(Node node, DependencyGraph dependencyGraph) { checkNotNull(node, "node"); checkNotNull(dependencyGraph, "dependencyGraph"); NodeDTO result = new NodeDTO(); mapProperties(node, result); mapHierarchy(node, dependencyGraph, result); mapDependencies(result, node, dependencyGraph); return result; } private  NodeMapper(); static NodeDTO toDTO(Node node, DependencyGraph dependencyGraph);  }