Package org.jclouds.glesys.domain

Examples of org.jclouds.glesys.domain.EmailAlias


   @Test(dependsOnMethods = "testCreateEmail")
   public void testAliases() {
      assertTrue(emailAccountApi.listAliasesInDomain(testDomain).isEmpty());

      EmailAlias alias = emailAccountApi.createAlias("test2@" + testDomain, "test@" + testDomain);
      assertEquals(alias.getAlias(), "test2@" + testDomain);
      assertEquals(alias.getForwardTo(), "test@" + testDomain);

      EmailAlias aliasFromList = Iterables.getOnlyElement(emailAccountApi.listAliasesInDomain(testDomain));
      assertEquals(aliasFromList, alias);

      EmailOverview overview = emailAccountApi.getOverview();
      assertEquals(1, overview.getSummary().getAliases());
View Full Code Here


                       .addHeader("Accept", "application/json")
                       .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==")
                       .addFormParam("domainname", "cl13016.test.jclouds.org").build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/email_list.json")).build()).getEmailAccountApi();

      EmailAlias expected = EmailAlias.builder().alias("test2@cl13016.test.jclouds.org").forwardTo("test2@cl13016.test.jclouds.org").build();
      EmailAlias actual = Iterables.getOnlyElement(api.listAliasesInDomain("cl13016.test.jclouds.org"));
      assertEquals(actual, expected);
   }
View Full Code Here

                       .addHeader("Accept", "application/json")
                       .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==")
                       .addFormParam("domainname", "cl13016.test.jclouds.org").build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/email_list.json")).build()).getEmailAccountApi();

      EmailAlias expected = EmailAlias.builder().alias("test2@cl13016.test.jclouds.org").forwardTo("test2@cl13016.test.jclouds.org").build();
      EmailAlias actual = Iterables.getOnlyElement(api.listAliasesInDomain("cl13016.test.jclouds.org"));
      assertEquals(actual, expected);
   }
View Full Code Here

                       .addHeader("Accept", "application/json")
                       .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==")
                       .addFormParam("domainname", "cl13016.test.jclouds.org").build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/email_list.json")).build()).getEmailAccountApi();

      EmailAlias expected = EmailAlias.builder().alias("test2@cl13016.test.jclouds.org").forwardTo("test2@cl13016.test.jclouds.org").build();
      EmailAlias actual = Iterables.getOnlyElement(api.listAliasesInDomain("cl13016.test.jclouds.org"));
      assertEquals(actual, expected);
   }
View Full Code Here

   @Test(dependsOnMethods = "testCreateEmail")
   public void testAliases() {
      assertTrue(emailAccountApi.listAliasesInDomain(testDomain).isEmpty());

      EmailAlias alias = emailAccountApi.createAlias("test2@" + testDomain, "test@" + testDomain);
      assertEquals(alias.getAlias(), "test2@" + testDomain);
      assertEquals(alias.getForwardTo(), "test@" + testDomain);

      EmailAlias aliasFromList = Iterables.getOnlyElement(emailAccountApi.listAliasesInDomain(testDomain));
      assertEquals(aliasFromList, alias);

      EmailOverview overview = emailAccountApi.getOverview();
      assertEquals(1, overview.getSummary().getAliases());
View Full Code Here

                       .addHeader("Accept", "application/json")
                       .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==")
                       .addFormParam("domainname", "cl13016.test.jclouds.org").build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/email_list.json")).build()).getEmailAccountApi();

      EmailAlias expected = EmailAlias.builder().alias("test2@cl13016.test.jclouds.org").forwardTo("test2@cl13016.test.jclouds.org").build();
      EmailAlias actual = Iterables.getOnlyElement(api.listAliasesInDomain("cl13016.test.jclouds.org"));
      assertEquals(actual, expected);
   }
View Full Code Here

   @Test(dependsOnMethods = "testCreateEmail")
   public void testAliases() {
      assertTrue(emailAccountApi.listAliasesInDomain(testDomain).isEmpty());

      EmailAlias alias = emailAccountApi.createAlias("test2@" + testDomain, "test@" + testDomain);
      assertEquals(alias.getAlias(), "test2@" + testDomain);
      assertEquals(alias.getForwardTo(), "test@" + testDomain);

      EmailAlias aliasFromList = Iterables.getOnlyElement(emailAccountApi.listAliasesInDomain(testDomain));
      assertEquals(aliasFromList, alias);

      EmailOverview overview = emailAccountApi.getOverview();
      assertEquals(1, overview.getSummary().getAliases());
View Full Code Here

TOP

Related Classes of org.jclouds.glesys.domain.EmailAlias

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.