Examples of Offering


Examples of honeycrm.server.domain.Offering

    final int offeringsCount = 2 + (random.nextInt() % 100);
    for (int i = 0; i < offeringsCount; i++) {
      final Calendar c = Calendar.getInstance();
      c.set(Calendar.YEAR, random.nextInt() % 3 + 100);

      Offering o = new Offering();
      o.deadline = (c.getTime());
      // TODO will see how to do that
      //o.services_objects = (new LinkedList<UniqueService>());
      //sum += getServices(o.services_objects);
View Full Code Here

Examples of org.jclouds.ibm.smartcloud.domain.Offering

   }

   @Test(dependsOnMethods = "resolveImageAndInstanceType")
   public void testAllocateIpAddress() throws Exception {

      Offering offering = Iterables.find(connection.listAddressOfferings(), new Predicate<Offering>() {

         @Override
         public boolean apply(Offering arg0) {
            return arg0.getLocation().equals(location.getId());
         }
      });

      try {
         ip = connection.allocateAddressInLocation(location.getId(), offering.getId());
         System.out.println(ip);
         assertEquals(ip.getIP(), null);
         // wait up to 30 seconds for this to become "free"
         new RetryablePredicate<Address>(new AddressFree(connection), 30, 2, TimeUnit.SECONDS).apply(ip);
         refreshIpAndReturnAllAddresses();
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.