Author: pwang
Date: 2010-10-18 15:47:30 -0700 (Mon, 18 Oct 2010)
New Revision: 22280

Added:
   
core3/plugin-impl/trunk/src/test/java/org/cytoscape/plugin/internal/PluginLoaderTaskFactoryTest.java
Log:
Original creation

Added: 
core3/plugin-impl/trunk/src/test/java/org/cytoscape/plugin/internal/PluginLoaderTaskFactoryTest.java
===================================================================
--- 
core3/plugin-impl/trunk/src/test/java/org/cytoscape/plugin/internal/PluginLoaderTaskFactoryTest.java
                                (rev 0)
+++ 
core3/plugin-impl/trunk/src/test/java/org/cytoscape/plugin/internal/PluginLoaderTaskFactoryTest.java
        2010-10-18 22:47:30 UTC (rev 22280)
@@ -0,0 +1,26 @@
+package org.cytoscape.plugin.internal;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+import static org.mockito.Mockito.mock;
+import org.cytoscape.plugin.CyPluginAdapter;
+import org.cytoscape.work.Task;
+import org.cytoscape.work.TaskIterator;
+import org.junit.Test;
+
+public class PluginLoaderTaskFactoryTest {
+       @Test
+       public void testGetTaskIterator() {
+               
+               CyPluginAdapter adapter = mock(CyPluginAdapter.class);
+               
+               PluginLoaderTaskFactory factory = new 
PluginLoaderTaskFactory(adapter);
+                                               
+               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