Author: mes
Date: 2011-04-29 11:00:11 -0700 (Fri, 29 Apr 2011)
New Revision: 24855

Modified:
   
core3/model-api/trunk/src/test/java/org/cytoscape/model/AbstractCyTableTest.java
Log:
allowing CyRow.get() to work for list types, even if this is not type safe

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
    2011-04-29 17:47:32 UTC (rev 24854)
+++ 
core3/model-api/trunk/src/test/java/org/cytoscape/model/AbstractCyTableTest.java
    2011-04-29 18:00:11 UTC (rev 24855)
@@ -844,4 +844,16 @@
                // doesn't create a row like getRow does.
                assertFalse(table.rowExists(l));
     }
+
+       // Allow the get() method to work for list types, even if not perfectly 
type safe.
+    @Test
+    public void testGetForLists() {
+        List<Boolean> ls = new ArrayList<Boolean>();
+        ls.add(true);
+        ls.add(false);
+        table.createListColumn("simpson", Boolean.class, false);
+        attrs.set("simpson",ls);
+        List res = attrs.get("simpson",List.class);
+        assertEquals(ls,res);
+       }
 }

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