Examples of transitionTo()


Examples of net.azib.ipscan.core.ScanningResultList.StopScanningListener.transitionTo()

  @Test
  public void testScanInfoCompletedNormally() throws Exception {
    StopScanningListener stopListener = scanningResults.new StopScanningListener();
    assertFalse(scanningResults.getScanInfo().isCompletedNormally());
   
    stopListener.transitionTo(ScanningState.IDLE, Transition.COMPLETE);
    assertTrue(scanningResults.getScanInfo().isCompletedNormally());

    stopListener.transitionTo(ScanningState.KILLING, Transition.STOP);
    assertFalse(scanningResults.getScanInfo().isCompletedNormally());
  }
View Full Code Here

Examples of net.azib.ipscan.core.ScanningResultList.StopScanningListener.transitionTo()

    assertFalse(scanningResults.getScanInfo().isCompletedNormally());
   
    stopListener.transitionTo(ScanningState.IDLE, Transition.COMPLETE);
    assertTrue(scanningResults.getScanInfo().isCompletedNormally());

    stopListener.transitionTo(ScanningState.KILLING, Transition.STOP);
    assertFalse(scanningResults.getScanInfo().isCompletedNormally());
  }
 
  @Test
  public void testInitNewScan() throws Exception {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.