Author: pwang
Date: 2010-10-26 16:08:37 -0700 (Tue, 26 Oct 2010)
New Revision: 22484
Added:
core3/property-api/trunk/src/test/
core3/property-api/trunk/src/test/java/
core3/property-api/trunk/src/test/java/org/
core3/property-api/trunk/src/test/java/org/cytoscape/
core3/property-api/trunk/src/test/java/org/cytoscape/property/
core3/property-api/trunk/src/test/java/org/cytoscape/property/BasicCyPropertyTest.java
Log:
Original creation
Added:
core3/property-api/trunk/src/test/java/org/cytoscape/property/BasicCyPropertyTest.java
===================================================================
---
core3/property-api/trunk/src/test/java/org/cytoscape/property/BasicCyPropertyTest.java
(rev 0)
+++
core3/property-api/trunk/src/test/java/org/cytoscape/property/BasicCyPropertyTest.java
2010-10-26 23:08:37 UTC (rev 22484)
@@ -0,0 +1,20 @@
+package org.cytoscape.property;
+
+import static org.junit.Assert.assertTrue;
+import java.util.Properties;
+import org.junit.Test;
+
+public class BasicCyPropertyTest {
+
+ @Test(expected=NullPointerException.class)
+ public void testNullProp() throws Exception {
+ BasicCyProperty p = new BasicCyProperty(null);
+ }
+
+ @Test
+ public void testGetProp(){
+ Properties props = new Properties();
+ BasicCyProperty p = new BasicCyProperty(props);
+ assertTrue(p.getProperties() != null);
+ }
+}
--
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.