Package org.jclouds.compute.domain.internal

Examples of org.jclouds.compute.domain.internal.TemplateBuilderImpl


      replay(knownImage);
      replay(defaultOptions);
      replay(optionsProvider);
      replay(templateBuilderProvider);

      TemplateBuilderImpl template = createTemplateBuilder(knownImage, locations, images, sizes, region,
            optionsProvider, templateBuilderProvider);
      try {
         template.imageId("ami").build();
         fail("Expected IllegalArgumentException");
      } catch (IllegalArgumentException e) {

      }
      verify(knownImage);
View Full Code Here


      replay(defaultOptions);
      replay(defaultLocation);
      replay(optionsProvider);
      replay(templateBuilderProvider);

      TemplateBuilderImpl template = createTemplateBuilder(knownImage, locations, images, sizes, defaultLocation,
            optionsProvider, templateBuilderProvider);

      assertEquals(template.imageId("region/bad").build().getImage(), knownImage);

      verify(knownImage);
      verify(defaultOptions);
      verify(defaultLocation);
      verify(optionsProvider);
View Full Code Here

      expect(os.getArch()).andReturn("paravirtual").atLeastOnce();
      expect(os.is64Bit()).andReturn(false).atLeastOnce();

      replay(knownImage, os, defaultOptions, optionsProvider, templateBuilderProvider, getImageStrategy);

      TemplateBuilderImpl template = createTemplateBuilder(knownImage, locations, images, sizes, region,
            optionsProvider, templateBuilderProvider, getImageStrategy);

      assertEquals(template.imageId("us-east-1/ami").build().getImage(), knownImage);

      verify(knownImage, os, defaultOptions, optionsProvider, templateBuilderProvider, getImageStrategy);
   }
View Full Code Here

      expect(optionsProvider.get()).andReturn(defaultOptions);

      replay(knownImage,  defaultOptions, optionsProvider, templateBuilderProvider, getImageStrategy);

      TemplateBuilderImpl template = createTemplateBuilder(knownImage, locations, images, sizes, region,
            optionsProvider, templateBuilderProvider, getImageStrategy);
      try {
         template.imageId("ami").build();
         fail("Expected IllegalArgumentException");
      } catch (IllegalArgumentException e) {

      }
View Full Code Here

      expect(defaultLocation.getId()).andReturn("region");
      expect(optionsProvider.get()).andReturn(defaultOptions);

      replay(knownImage,  defaultOptions, defaultLocation, optionsProvider, templateBuilderProvider, getImageStrategy);

      TemplateBuilderImpl template = createTemplateBuilder(knownImage, locations, images, sizes, defaultLocation,
            optionsProvider, templateBuilderProvider, getImageStrategy);

      assertEquals(template.imageId("region/bad").build().getImage(), knownImage);

      verify(knownImage,  defaultOptions, defaultLocation, optionsProvider, templateBuilderProvider, getImageStrategy);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.compute.domain.internal.TemplateBuilderImpl

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.