use of org.cytoscape.model.DummyCyEdge in project cytoscape-api by cytoscape.
the class AbstractCySubNetworkTest method testAddEdgeBadEdge.
@Test
public void testAddEdgeBadEdge() {
defaultSetup();
CyEdge ex = new DummyCyEdge(null, null, true, 100);
try {
sub.addEdge(ex);
} catch (IllegalArgumentException e) {
noChangeChecks();
return;
}
}
use of org.cytoscape.model.DummyCyEdge in project cytoscape-api by cytoscape.
the class AbstractCyRootNetworkTest method testAddSubNetworkWithGoodNodesAndInvalidEdges.
@Test(expected = IllegalArgumentException.class)
public void testAddSubNetworkWithGoodNodesAndInvalidEdges() {
CyNode n1 = root.addNode();
CyNode n2 = root.addNode();
CyNode n3 = root.addNode();
CyEdge ex = new DummyCyEdge(null, null, false, 50);
List<CyNode> nodes = Arrays.asList(n1, n2, n3);
List<CyEdge> edges = Arrays.asList(ex);
CySubNetwork n = root.addSubNetwork(nodes, edges);
}
Aggregations