Examples of transitionToNext()


Examples of net.azib.ipscan.core.state.StateMachine.transitionToNext()

  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
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.