Author: pwang
Date: 2010-10-15 12:17:37 -0700 (Fri, 15 Oct 2010)
New Revision: 22253

Added:
   
core3/core-task-impl/trunk/src/test/java/org/cytoscape/task/internal/setcurren/SetCurrentNetworkTaskFactoryImplTest.java
Log:
Original creation

Added: 
core3/core-task-impl/trunk/src/test/java/org/cytoscape/task/internal/setcurren/SetCurrentNetworkTaskFactoryImplTest.java
===================================================================
--- 
core3/core-task-impl/trunk/src/test/java/org/cytoscape/task/internal/setcurren/SetCurrentNetworkTaskFactoryImplTest.java
                            (rev 0)
+++ 
core3/core-task-impl/trunk/src/test/java/org/cytoscape/task/internal/setcurren/SetCurrentNetworkTaskFactoryImplTest.java
    2010-10-15 19:17:37 UTC (rev 22253)
@@ -0,0 +1,28 @@
+package org.cytoscape.task.internal.setcurren;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+import static org.mockito.Mockito.*;
+import org.cytoscape.session.CyNetworkManager;
+import org.cytoscape.work.Task;
+import org.cytoscape.work.TaskIterator;
+import org.junit.Test;
+import org.cytoscape.task.internal.setcurrent.SetCurrentNetworkTaskFactoryImpl;
+
+public class SetCurrentNetworkTaskFactoryImplTest {
+
+       @Test
+       public void testRun() throws Exception {
+
+               CyNetworkManager netmgr = mock(CyNetworkManager.class);;
+
+               SetCurrentNetworkTaskFactoryImpl factory = new 
SetCurrentNetworkTaskFactoryImpl(netmgr);
+               
+               TaskIterator ti = factory.getTaskIterator();
+               assertNotNull(ti);
+               
+               assertTrue( ti.hasNext() );
+               Task t = ti.next();
+               assertNotNull( t );             
+       }
+}

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