Search in sources :

Example 1 with SetCurrentNetworkTaskFactoryImpl

use of org.cytoscape.task.internal.setcurrent.SetCurrentNetworkTaskFactoryImpl in project cytoscape-impl by cytoscape.

the class SetCurrentNetworkTaskFactoryImplTest method testRun.

@Test
public void testRun() throws Exception {
    CyApplicationManager appMgr = mock(CyApplicationManager.class);
    CyNetworkManager netmgr = mock(CyNetworkManager.class);
    ;
    SetCurrentNetworkTaskFactoryImpl factory = new SetCurrentNetworkTaskFactoryImpl(appMgr, netmgr);
    TaskIterator ti = factory.createTaskIterator();
    assertNotNull(ti);
    assertTrue(ti.hasNext());
    Task t = ti.next();
    assertNotNull(t);
}
Also used : CyApplicationManager(org.cytoscape.application.CyApplicationManager) Task(org.cytoscape.work.Task) CyNetworkManager(org.cytoscape.model.CyNetworkManager) TaskIterator(org.cytoscape.work.TaskIterator) SetCurrentNetworkTaskFactoryImpl(org.cytoscape.task.internal.setcurrent.SetCurrentNetworkTaskFactoryImpl) Test(org.junit.Test)

Aggregations

CyApplicationManager (org.cytoscape.application.CyApplicationManager)1 CyNetworkManager (org.cytoscape.model.CyNetworkManager)1 SetCurrentNetworkTaskFactoryImpl (org.cytoscape.task.internal.setcurrent.SetCurrentNetworkTaskFactoryImpl)1 Task (org.cytoscape.work.Task)1 TaskIterator (org.cytoscape.work.TaskIterator)1 Test (org.junit.Test)1