Example #1
0
 public void testCreateWithContactWhenResponseIs2xx() {
   DynECTApi success =
       requestsSendResponses(createSession, createSessionResponse, create, createResponse);
   assertEquals(
       success.getZoneApi().scheduleCreateWithContact("jclouds.org", "*****@*****.**"),
       Job.success(285351593L));
 }
Example #2
0
 public void testCreateWhenResponseIs2xx() {
   DynECTApi success =
       requestsSendResponses(createSession, createSessionResponse, create, createResponse);
   assertEquals(
       success
           .getZoneApi()
           .scheduleCreate(
               CreatePrimaryZone.builder()
                   .fqdn("jclouds.org")
                   .contact("*****@*****.**")
                   .build()),
       Job.success(285351593L));
 }