Author: ruschein
Date: 2010-12-02 15:00:43 -0800 (Thu, 02 Dec 2010)
New Revision: 23077

Modified:
   
core3/model-api/trunk/src/test/java/org/cytoscape/model/AbstractCyTableTest.java
Log:
Added a test for the new getMatchingRows() method of CyTable.

Modified: 
core3/model-api/trunk/src/test/java/org/cytoscape/model/AbstractCyTableTest.java
===================================================================
--- 
core3/model-api/trunk/src/test/java/org/cytoscape/model/AbstractCyTableTest.java
    2010-12-02 22:31:30 UTC (rev 23076)
+++ 
core3/model-api/trunk/src/test/java/org/cytoscape/model/AbstractCyTableTest.java
    2010-12-02 23:00:43 UTC (rev 23077)
@@ -383,4 +383,17 @@
                table.createListColumn("someList", String.class);
                attrs.set("someList", 3.5);
        }
+
+       @Test
+       public void testGetMatchingColumns() {
+               table.createColumn("someLongs", Long.class);
+               final CyRow row1 = table.getRow(1L);
+               row1.set("someLongs", 15L);
+               final CyRow row2 = table.getRow(2L);
+               row2.set("someLongs", -27L);
+               Set<CyRow> matchingRows = table.getMatchingRows("someLongs", 
15L);
+               assertTrue(matchingRows.size() == 1);
+               matchingRows = table.getMatchingRows("someLongs", -15L);
+               assertTrue(matchingRows.isEmpty());
+       }
 }

-- 
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.

Reply via email to