Author: clopes
Date: 2012-09-24 13:53:05 -0700 (Mon, 24 Sep 2012)
New Revision: 30469
Modified:
core3/impl/trunk/session-impl/integration-test/src/test/java/org/cytoscape/session/Cy283GroupsSessionLoadingTest.java
core3/impl/trunk/session-impl/integration-test/src/test/resources/testData/session2x/v283Groups.cys
Log:
refs #6 : Added mores tests for Cy2 groups (checking group-node and meta-edge
attributes)
Modified:
core3/impl/trunk/session-impl/integration-test/src/test/java/org/cytoscape/session/Cy283GroupsSessionLoadingTest.java
===================================================================
---
core3/impl/trunk/session-impl/integration-test/src/test/java/org/cytoscape/session/Cy283GroupsSessionLoadingTest.java
2012-09-24 20:40:22 UTC (rev 30468)
+++
core3/impl/trunk/session-impl/integration-test/src/test/java/org/cytoscape/session/Cy283GroupsSessionLoadingTest.java
2012-09-24 20:53:05 UTC (rev 30469)
@@ -122,7 +122,18 @@
assertEquals(SavePolicy.SESSION_FILE,
g2.getGroupNetwork().getSavePolicy());
assertEquals(SavePolicy.SESSION_FILE,
g3.getGroupNetwork().getSavePolicy());
- // TODO check group network attributes
- // TODO check meta-edge attributes
+ // Check group network attributes
+ assertEquals(new Integer(6), root.getRow(gn1).get("score",
Integer.class));
+ assertEquals(new Integer(2), net.getRow(gn2).get("score",
Integer.class));
+ assertEquals(new Integer(5), root.getRow(gn3).get("score",
Integer.class));
+
+ // Check meta-edge attributes
+ CyEdge me1 = getEdgeByName(root, "Metanode 1
(meta-DirectedEdge) node2");
+ assertEquals(new Integer(9), root.getRow(me1).get("weight",
Integer.class));
+ CyEdge me2 = getEdgeByName(root, "Metanode 2
(meta-meta-DirectedEdge) node2");
+ assertEquals(new Integer(8), net.getRow(me2).get("weight",
Integer.class));
+
+ // Visual Properties (group nodes and meta-edges only)
+ // TODO
}
}
Modified:
core3/impl/trunk/session-impl/integration-test/src/test/resources/testData/session2x/v283Groups.cys
===================================================================
(Binary files differ)
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.