Package net.azib.ipscan.gui.actions.GotoMenuActions

Examples of net.azib.ipscan.gui.actions.GotoMenuActions.NextHost


    @Test
  public void nextHostFindsFirstHost() throws Exception {
        when(table.getItemCount()).thenReturn(2);
    when(table.getSelectionIndex()).thenReturn(-1);
        when(results.getResult(0).getType()).thenReturn(ResultType.WITH_PORTS);
        new NextHost(table, ResultType.ALIVE).handleEvent(null);
        verify(table).setFocus();
    verify(table).setSelection(0);
    }
View Full Code Here


    when(table.getItemCount()).thenReturn(2);
    when(table.getSelectionIndex()).thenReturn(0);
        when(results.getResult(1).getType()).thenReturn(ResultType.DEAD);
        when(results.getResult(0).getType()).thenReturn(ResultType.ALIVE);
        when(table.getSelectionIndex()).thenReturn(-1);
    new NextHost(table, ResultType.ALIVE).handleEvent(null);
        verify(table).setFocus();
        verify(table).setSelection(0);
    }
View Full Code Here

    public void nextHostFindsSecondItem() {
    when(table.getItemCount()).thenReturn(2);
    when(table.getSelectionIndex()).thenReturn(-1);
        when(results.getResult(0).getType()).thenReturn(ResultType.WITH_PORTS);
        when(results.getResult(1).getType()).thenReturn(ResultType.DEAD);
        new NextHost(table, ResultType.DEAD).handleEvent(null);
        verify(table).setFocus();
        verify(table).setSelection(1);
  }
View Full Code Here

TOP

Related Classes of net.azib.ipscan.gui.actions.GotoMenuActions.NextHost

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.