Package net.azib.ipscan.core.state

Examples of net.azib.ipscan.core.state.StateMachine


    scanningResults.initNewScan(mockFeeder("someFeeder"));
  }
 
  @Test
  public void testConstructor() throws Exception {
    StateMachine stateMachine = new StateMachine(){};
    scanningResults = new ScanningResultList(fetcherRegistry, stateMachine);
    scanningResults.initNewScan(mockFeeder("inff"));
    assertFalse(scanningResults.getScanInfo().isCompletedNormally());
    stateMachine.transitionToNext();
    stateMachine.startScanning();
    stateMachine.stop();
    stateMachine.complete();
    assertTrue(scanningResults.getScanInfo().isCompletedNormally());
  }
View Full Code Here

TOP

Related Classes of net.azib.ipscan.core.state.StateMachine

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.