Package org.jclouds.glesys.domain

Examples of org.jclouds.glesys.domain.Domain$Builder


            HttpRequest.builder().method("POST").endpoint("https://api.glesys.com/domain/list/format/json")
                       .addHeader("Accept", "application/json")
                       .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==").build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/domain_list.json")).build()).getDomainApi();

      Domain expected =
            Domain.builder().domainName("testglesys.jclouds.org").createTime(dateService.iso8601SecondsDateParse("2012-01-31T12:19:03+01:00")).build();

      Domain actual = Iterables.getOnlyElement(api.list());
      assertEquals(expected.getName(), actual.getName());
      assertEquals(expected.getCreateTime(), actual.getCreateTime());
   }
View Full Code Here


   private Predicate<Integer> domainCounter;
   private Predicate<Integer> recordCounter;

   @Test
   public void testGetDomain() throws Exception {
      Domain domain = domainApi.get(testDomain);
      assertNotNull(domain);
      assertEquals(domain.getName(), testDomain);
      assertNotNull(domain.getCreateTime());
   }
View Full Code Here

   }
  
   @Test
   public void testUpdateDomain() throws Exception {
      domainApi.update(testDomain, DomainOptions.Builder.responsiblePerson("another-tester.jclouds.org."));
      Domain domain = domainApi.get(testDomain);
      assertEquals(domain.getResponsiblePerson(), "another-tester.jclouds.org.");
   }
View Full Code Here

   private Predicate<Integer> domainCounter;
   private Predicate<Integer> recordCounter;

   @Test
   public void testGetDomain() throws Exception {
      Domain domain = domainApi.get(testDomain);
      assertNotNull(domain);
      assertEquals(domain.getName(), testDomain);
      assertNotNull(domain.getCreateTime());
   }
View Full Code Here

   }
  
   @Test
   public void testUpdateDomain() throws Exception {
      domainApi.update(testDomain, DomainOptions.Builder.responsiblePerson("another-tester.jclouds.org."));
      Domain domain = domainApi.get(testDomain);
      assertEquals(domain.getResponsiblePerson(), "another-tester.jclouds.org.");
   }
View Full Code Here

            HttpRequest.builder().method("POST").endpoint("https://api.glesys.com/domain/list/format/json")
                       .addHeader("Accept", "application/json")
                       .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==").build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/domain_list.json")).build()).getDomainApi();

      Domain expected =
            Domain.builder().domainName("testglesys.jclouds.org").createTime(dateService.iso8601SecondsDateParse("2012-01-31T12:19:03+01:00")).build();

      Domain actual = Iterables.getOnlyElement(api.list());
      assertEquals(expected.getName(), actual.getName());
      assertEquals(expected.getCreateTime(), actual.getCreateTime());
   }
View Full Code Here

            HttpRequest.builder().method("POST").endpoint("https://api.glesys.com/domain/list/format/json")
                       .addHeader("Accept", "application/json")
                       .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==").build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/domain_list.json")).build()).getDomainApi();

      Domain expected =
            Domain.builder().domainName("testglesys.jclouds.org").createTime(dateService.iso8601SecondsDateParse("2012-01-31T12:19:03+01:00")).build();

      Domain actual = Iterables.getOnlyElement(api.list());
      assertEquals(expected.getName(), actual.getName());
      assertEquals(expected.getCreateTime(), actual.getCreateTime());
   }
View Full Code Here

   private Predicate<Integer> domainCounter;
   private Predicate<Integer> recordCounter;

   @Test
   public void testGetDomain() throws Exception {
      Domain domain = domainApi.get(testDomain);
      assertNotNull(domain);
      assertEquals(domain.getName(), testDomain);
      assertNotNull(domain.getCreateTime());
   }
View Full Code Here

   }
  
   @Test
   public void testUpdateDomain() throws Exception {
      domainApi.update(testDomain, DomainOptions.Builder.responsiblePerson("another-tester.jclouds.org."));
      Domain domain = domainApi.get(testDomain);
      assertEquals(domain.getResponsiblePerson(), "another-tester.jclouds.org.");
   }
View Full Code Here

   private Predicate<Integer> domainCounter;
   private Predicate<Integer> recordCounter;

   @Test
   public void testGetDomain() throws Exception {
      Domain domain = domainApi.get(testDomain);
      assertNotNull(domain);
      assertEquals(domain.getName(), testDomain);
      assertNotNull(domain.getCreateTime());
   }
View Full Code Here

TOP

Related Classes of org.jclouds.glesys.domain.Domain$Builder

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.