use of org.cytoscape.model.DummyCyNode in project cytoscape-api by cytoscape.
the class AbstractCyRootNetworkTest method testAddSubNetworkWithInvalidNodesAndGoodEdges.
@Test(expected = IllegalArgumentException.class)
public void testAddSubNetworkWithInvalidNodesAndGoodEdges() {
CyNode n1 = root.addNode();
CyNode n2 = root.addNode();
CyEdge e1 = root.addEdge(n1, n2, false);
CyNode b1 = new DummyCyNode(74);
CyNode b2 = new DummyCyNode(75);
List<CyNode> nodes = Arrays.asList(b1, b2);
List<CyEdge> edges = Arrays.asList(e1);
CySubNetwork n = root.addSubNetwork(nodes, edges);
}
Aggregations