Examples of initNewScan()


Examples of net.azib.ipscan.core.ScanningResultList.initNewScan()

    when(fetcherRegistry.getSelectedFetcherIndex(PingFetcher.ID)).thenReturn(2);
    when(fetcherRegistry.getSelectedFetcherIndex("fetcher.comment")).thenReturn(3);
    when(fetcherRegistry.getSelectedFetcherIndex("noSuchFetcher")).thenReturn(-1);

    ScanningResultList scanningResults = new ScanningResultList(fetcherRegistry);
    scanningResults.initNewScan(mockFeeder("info"));
    ScanningResult result = scanningResults.createResult(InetAddress.getByName("127.0.0.1"));
    result.setValue(0, new InetAddressHolder(InetAddress.getByName("127.0.0.1")));
    result.setValue(1, "HOSTNAME");
    result.setValue(2, new IntegerWithUnit(10, "ms"));
    scanningResults.registerAtIndex(0, result);
View Full Code Here

Examples of net.azib.ipscan.core.ScanningResultList.initNewScan()

  public void testProcess() throws Exception {
    File file = File.createTempFile("exportTest", "txt");
    ExportProcessor exportProcessor = new ExportProcessor(new TXTExporter(), file, false);
   
    ScanningResultList scanningResultList = new ScanningResultList(fetcherRegistry);
    scanningResultList.initNewScan(mockFeeder("megaFeeder"));
    scanningResultList.registerAtIndex(0, scanningResultList.createResult(InetAddress.getByName("192.168.0.13")));
    exportProcessor.process(scanningResultList, null);
   
    String content = readFileContent(file);
   
View Full Code Here

Examples of net.azib.ipscan.core.ScanningResultList.initNewScan()

  public void testProcessWithFilter() throws Exception {
    File file = File.createTempFile("exportTest", "txt");
    ExportProcessor exportProcessor = new ExportProcessor(new TXTExporter(), file, false);
   
    ScanningResultList scanningResultList = new ScanningResultList(fetcherRegistry);
    scanningResultList.initNewScan(mockFeeder("feeder2"));
   
    scanningResultList.registerAtIndex(0, scanningResultList.createResult(InetAddress.getByName("192.168.13.66")));
    scanningResultList.registerAtIndex(1, scanningResultList.createResult(InetAddress.getByName("192.168.13.67")));
    scanningResultList.registerAtIndex(2, scanningResultList.createResult(InetAddress.getByName("192.168.13.76")));
   
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.