Search in sources :

Example 1 with SetSelectedNetworksEvent

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

the class SetSelectedNetworksEventTest method testNullGetSelectedNetworksEvent.

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

Example 2 with SetSelectedNetworksEvent

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

the class SetSelectedNetworksEventTest method testGoodGetSelectedNetworksEvent.

@Test
public void testGoodGetSelectedNetworksEvent() {
    final List<CyNetwork> networks = new ArrayList<CyNetwork>();
    final SetSelectedNetworksEvent e = new SetSelectedNetworksEvent(source, networks);
    assertNotNull(e.getNetworks());
    assertEquals(networks, e.getNetworks());
}
Also used : SetSelectedNetworksEvent(org.cytoscape.application.events.SetSelectedNetworksEvent) ArrayList(java.util.ArrayList) CyNetwork(org.cytoscape.model.CyNetwork) Test(org.junit.Test)

Aggregations

SetSelectedNetworksEvent (org.cytoscape.application.events.SetSelectedNetworksEvent)2 Test (org.junit.Test)2 ArrayList (java.util.ArrayList)1 CyNetwork (org.cytoscape.model.CyNetwork)1