Package net.azib.ipscan.config

Examples of net.azib.ipscan.config.ScannerConfig


    ScanningResultList scanningResults = new ScanningResultList(registry);
    scanningResults.info = new ScanInfo(); // initialize info so we can add a dummy result
    scanningResults.registerAtIndex(0, scanningResults.createResult(InetAddress.getLocalHost()));
   
    ScannerConfig config = mock(ScannerConfig.class);
    config.maxThreads = 10;
   
    ScannerDispatcherThread thread = new ScannerDispatcherThread(feeder, new Scanner(registry), null, null, scanningResults, config, null);

    assertTrue("ScannerThread should not clear the results - otherwise rescanning will not work",
View Full Code Here


    }
  }

  @Test
  public void createDefaultPinger() throws Exception {
    ScannerConfig config = Config.getConfig().forScanner();
    PingerRegistry registry = new PingerRegistry(config);
    config.selectedPinger = "pinger.udp";
    assertTrue(registry.createPinger() instanceof UDPPinger);
  }
View Full Code Here

    assertTrue(registry.createPinger() instanceof UDPPinger);
  }
 
  @Test
  public void checkSelectedPinger() throws Exception {
    ScannerConfig config = Config.getConfig().forScanner();
    PingerRegistry registry = new PingerRegistry(config);
   
    config.selectedPinger = "pinger.udp";
    assertTrue(registry.checkSelectedPinger());
View Full Code Here

TOP

Related Classes of net.azib.ipscan.config.ScannerConfig

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.