Package org.jclouds.virtualbox.statements

Examples of org.jclouds.virtualbox.statements.ScanNetworkWithPing.render()


   private static final String network = "192.168.1.1";
   private static final String networkWithoutLastNumber = "192.168.1";

   public void testGetIPAdressFromMacAddressUnix() {
      ScanNetworkWithPing statement = new ScanNetworkWithPing(network);
      assertEquals(statement.render(OsFamily.UNIX), "for i in {1..254} ; do ping -c 1 -t 1 " + networkWithoutLastNumber + ".$i & done");

   }

}
View Full Code Here


   private static final String network = "192.168.1.1";
   private static final String networkWithoutLastNumber = "192.168.1";

   public void testGetIPAdressFromMacAddressUnix() {
      ScanNetworkWithPing statement = new ScanNetworkWithPing(network);
      assertEquals(statement.render(OsFamily.UNIX), "for i in {1..254} ; do ping -c 1 -t 1 " + networkWithoutLastNumber + ".$i & done");

   }

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