Search in sources :

Example 1 with SetSelectedNetworkViewsEvent

use of org.cytoscape.application.events.SetSelectedNetworkViewsEvent in project cytoscape-api by cytoscape.

the class SetSelectedNteworkViewsEventTest method testNullGetSelectedNetworkViewsEvent.

@Test
public void testNullGetSelectedNetworkViewsEvent() {
    final SetSelectedNetworkViewsEvent e = new SetSelectedNetworkViewsEvent(source, null);
    assertNull(e.getNetworkViews());
}
Also used : SetSelectedNetworkViewsEvent(org.cytoscape.application.events.SetSelectedNetworkViewsEvent) Test(org.junit.Test)

Example 2 with SetSelectedNetworkViewsEvent

use of org.cytoscape.application.events.SetSelectedNetworkViewsEvent in project cytoscape-api by cytoscape.

the class SetSelectedNteworkViewsEventTest method testGoodGetSelectedNetworkViewsEvent.

@Test
public void testGoodGetSelectedNetworkViewsEvent() {
    final List<CyNetworkView> views = new ArrayList<CyNetworkView>();
    final SetSelectedNetworkViewsEvent e = new SetSelectedNetworkViewsEvent(source, views);
    assertNotNull(e.getNetworkViews());
    assertEquals(views, e.getNetworkViews());
}
Also used : ArrayList(java.util.ArrayList) SetSelectedNetworkViewsEvent(org.cytoscape.application.events.SetSelectedNetworkViewsEvent) CyNetworkView(org.cytoscape.view.model.CyNetworkView) Test(org.junit.Test)

Aggregations

SetSelectedNetworkViewsEvent (org.cytoscape.application.events.SetSelectedNetworkViewsEvent)2 Test (org.junit.Test)2 ArrayList (java.util.ArrayList)1 CyNetworkView (org.cytoscape.view.model.CyNetworkView)1