Package org.jclouds.date.internal

Examples of org.jclouds.date.internal.SimpleDateFormatDateService


      InputStream is = getClass().getResourceAsStream("/describe_spot_price_history.xml");

      Set<Spot> expected = ImmutableSet.of(
              Spot.builder().region("us-west-1").instanceType("t1.micro").productDescription("SUSE Linux").spotPrice(0.013f)
                      .timestamp(new SimpleDateFormatDateService().iso8601DateParse("2011-03-07T12:17:19.000Z"))
                      .availabilityZone("us-west-1a").build(),
              Spot.builder().region("us-west-1").instanceType("m1.large").productDescription("Linux/UNIX").spotPrice(0.119f)
                      .timestamp(new SimpleDateFormatDateService().iso8601DateParse("2011-03-07T16:29:16.000Z"))
                      .availabilityZone("us-west-1b").build(),
              Spot.builder().region("us-west-1").instanceType("t1.micro").productDescription("Windows").spotPrice(0.013f)
                      .timestamp(new SimpleDateFormatDateService().iso8601DateParse("2011-03-07T17:56:54.000Z"))
                      .availabilityZone("us-west-1c").build()

      );

      Set<Spot> result = factory.create(injector.createChildInjector(new AbstractModule(){
View Full Code Here


   @BeforeTest
   void setupClient() {
      endPoint = URI.create("http://localhost:80/foo");
      req = new ConvertToJcloudsResponse(new DefaultContentMetadataCodec(new DateServiceDateCodecFactory(
            new SimpleDateFormatDateService())));
   }
View Full Code Here

   @BeforeTest
   void setupClient() {
      endPoint = URI.create("http://localhost:80/foo");
      req = new ConvertToGaeRequest(new HttpUtils(0, 0, 0, 0), new DefaultContentMetadataCodec(
            new DateServiceDateCodecFactory(new SimpleDateFormatDateService())));
   }
View Full Code Here

            .myNotes("test notes")
            .nickname("test nickname")
            .phone("123456789")
            .postcode("12345")
            .reseller("test reseller")
            .signupTime(new SimpleDateFormatDateService().iso8601SecondsDateParse("2013-05-28T11:57:01+00:00"))
            .state("REGULAR")
            .taxRate(3.14)
            .taxName("test tax_name")
            .title("test title")
            .town("test town")
View Full Code Here

            .myNotes("test notes")
            .nickname("test nickname")
            .phone("123456789")
            .postcode("12345")
            .reseller("test reseller")
            .signupTime(new SimpleDateFormatDateService().iso8601SecondsDateParse("2013-05-28T11:57:01+00:00"))
            .state("REGULAR")
            .taxRate(3.14)
            .taxName("test tax_name")
            .title("test title")
            .town("test town")
View Full Code Here

                    .os("linux")
                    .type(Type.VIRTUALMACHINE)
                    .description("Centos 6 VM 1.0.1")
                    .isDefault(false)
                    .version("1.0.1")
                    .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-02-13T06:30:33+00:00")).build();
   }
View Full Code Here

            .memorySizeMb(1024)
            .diskSizeGb(61440)
            .metadata(
                  ImmutableMap.<String, JsonBall> builder()
                        .put("root_authorized_keys", new JsonBall("ssh-rsa XXXXXX== test@xxxx.ovh.net\n")).build())
            .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-05-09T13:32:46+00:00"))
            .updated(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-05-11T08:44:53+00:00")).build();
   }
View Full Code Here

   public Set<Key> expected() {
      return ImmutableSet.of(
            Key.builder()
               .name("rsa")
               .key("ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0A5Pf5Cq...")
               .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-04-13T22:14:46+00:00"))
               .build()
      );
   }
View Full Code Here

   @Consumes(MediaType.APPLICATION_JSON)
   public Key expected() {
      return Key.builder()
                .name("rsa")
                .key("ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0A5Pf5Cq...")
                .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2011-04-13T22:14:46+00:00"))
                .build();
   }
View Full Code Here

               .name("ubuntu-10.04")
               .os("linux")
               .type(Type.VIRTUALMACHINE)
               .description("Ubuntu 10.04 VM 1.0.1")
               .version("1.0.1")
               .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-02-22T18:27:32+00:00"))
               .build(),
              
        Dataset.builder()
               .id("e4cd7b9e-4330-11e1-81cf-3bb50a972bda")
               .urn("sdc:sdc:centos-6:1.0.1")
               .name("centos-6")
               .os("linux")
               .type(Type.VIRTUALMACHINE)
               .description("Centos 6 VM 1.0.1")
               .version("1.0.1")
               .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-02-15T20:04:18+00:00"))
               .build(),
 
        Dataset.builder()
               .id("9551fdbc-cc9a-11e1-a9e7-eb1e788a8690")
               .urn("sdc:sdc:standard64:1.0.1")
               .name("standard64")
               .os("smartos")
               .type(Type.SMARTMACHINE)
               .description("64-bit machine image optimized for web development")
               .version("1.0.1")
               .created(new SimpleDateFormatDateService().iso8601SecondsDateParse("2012-07-13T03:30:22+00:00"))
               .build()
        );
   }
View Full Code Here

TOP

Related Classes of org.jclouds.date.internal.SimpleDateFormatDateService

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.