@@ -60,7 +60,7 @@ public void testFetchRequest() {
6060 public void testFetchResponse () {
6161 new NonStrictExpectations () {{
6262 twilioRestClient .request ((Request ) any );
63- result = new Response ("{\" account_sid\" : \" ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" address\" : \" address \" ,\" binding_type\" : \" binding_type \" ,\" credential_sid\" : \" CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \" ,\" date_created\" : \" 2015-07-30T20:00:00Z\" ,\" date_updated\" : \" 2015-07-30T20:00:00Z\" ,\" endpoint\" : \" endpoint \" ,\" identity\" : \" identity \" ,\" notification_protocol_version\" : \" notification_protocol_version \" ,\" service_sid\" : \" ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" sid\" : \" BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" tags\" : [\" tags \" ],\" url\" : \" http ://www.example .com\" }" , TwilioRestClient .HTTP_STATUS_CODE_OK );
63+ result = new Response ("{\" account_sid\" : \" ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" address\" : \" a7c658f4111ec4ff5a1a647f9d0edd819025b9f20522d2fae897049f32873e73 \" ,\" binding_type\" : \" apn \" ,\" credential_sid\" : null ,\" date_created\" : \" 2015-07-30T20:00:00Z\" ,\" date_updated\" : \" 2015-07-30T20:00:00Z\" ,\" endpoint\" : \" 26607274 \" ,\" identity\" : \" 24987039 \" ,\" notification_protocol_version\" : \" 3 \" ,\" service_sid\" : \" ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" sid\" : \" BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" tags\" : [\" 26607274 \" ],\" url\" : \" https ://notify.twilio .com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \" }" , TwilioRestClient .HTTP_STATUS_CODE_OK );
6464 twilioRestClient .getObjectMapper ();
6565 result = new ObjectMapper ();
6666 }};
@@ -127,7 +127,7 @@ public void testCreateRequest() {
127127 public void testCreateResponse () {
128128 new NonStrictExpectations () {{
129129 twilioRestClient .request ((Request ) any );
130- result = new Response ("{\" account_sid\" : \" ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" address\" : \" address \" ,\" binding_type\" : \" binding_type \" ,\" credential_sid\" : \" CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \" ,\" date_created\" : \" 2015-07-30T20:00:00Z\" ,\" date_updated\" : \" 2015-07-30T20:00:00Z\" ,\" endpoint\" : \" endpoint \" ,\" identity\" : \" identity \" ,\" notification_protocol_version\" : \" notification_protocol_version \" ,\" service_sid\" : \" ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" sid\" : \" BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" tags\" : [\" tags \" ],\" url\" : \" http ://www.example .com\" }" , TwilioRestClient .HTTP_STATUS_CODE_CREATED );
130+ result = new Response ("{\" account_sid\" : \" ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" address\" : \" a7c658f4111ec4ff5a1a647f9d0edd819025b9f20522d2fae897049f32873e73 \" ,\" binding_type\" : \" apn \" ,\" credential_sid\" : null ,\" date_created\" : \" 2015-07-30T20:00:00Z\" ,\" date_updated\" : \" 2015-07-30T20:00:00Z\" ,\" endpoint\" : \" 26607274 \" ,\" identity\" : \" 24987039 \" ,\" notification_protocol_version\" : \" 3 \" ,\" service_sid\" : \" ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" sid\" : \" BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" tags\" : [\" 26607274 \" ],\" url\" : \" https ://notify.twilio .com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \" }" , TwilioRestClient .HTTP_STATUS_CODE_CREATED );
131131 twilioRestClient .getObjectMapper ();
132132 result = new ObjectMapper ();
133133 }};
@@ -159,7 +159,7 @@ public void testReadRequest() {
159159 public void testReadEmptyResponse () {
160160 new NonStrictExpectations () {{
161161 twilioRestClient .request ((Request ) any );
162- result = new Response ("{\" bindings\" : [],\" meta\" : {\" first_page_url\" : \" https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?Page=0& PageSize=50\" ,\" key\" : \" bindings\" ,\" next_page_url\" : null,\" page\" : 0,\" page_size\" : 0 ,\" previous_page_url\" : null,\" url\" : \" https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings\" }}" , TwilioRestClient .HTTP_STATUS_CODE_OK );
162+ result = new Response ("{\" bindings\" : [],\" meta\" : {\" first_page_url\" : \" https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=50&Page=0 \" ,\" key\" : \" bindings\" ,\" next_page_url\" : null,\" page\" : 0,\" page_size\" : 50 ,\" previous_page_url\" : null,\" url\" : \" https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=50&Page=0 \" }}" , TwilioRestClient .HTTP_STATUS_CODE_OK );
163163 twilioRestClient .getObjectMapper ();
164164 result = new ObjectMapper ();
165165 }};
@@ -171,7 +171,7 @@ public void testReadEmptyResponse() {
171171 public void testReadFullResponse () {
172172 new NonStrictExpectations () {{
173173 twilioRestClient .request ((Request ) any );
174- result = new Response ("{\" bindings\" : [{\" account_sid\" : \" ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" address\" : \" address\" ,\" binding_type\" : \" binding_type\" ,\" credential_sid\" : \" CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" date_created\" : \" 2015-07-30T20:00:00Z\" ,\" date_updated\" : \" 2015-07-30T20:00:00Z\" ,\" endpoint\" : \" endpoint\" ,\" identity\" : \" identity\" ,\" notification_protocol_version\" : \" notification_protocol_version\" ,\" service_sid\" : \" ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" sid\" : \" BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" tags\" : [\" tags\" ],\" url\" : \" http://www.example.com\" }],\" meta\" : {\" first_page_url\" : \" https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?Page=0&PageSize=50\" ,\" key\" : \" bindings\" ,\" next_page_url\" : null,\" page\" : 0,\" page_size\" : 1,\" previous_page_url\" : null,\" url\" : \" https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings\" }}" , TwilioRestClient .HTTP_STATUS_CODE_OK );
174+ result = new Response ("{\" bindings\" : [{\" account_sid\" : \" ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" address\" : \" a7c658f4111ec4ff5a1a647f9d0edd819025b9f20522d2fae897049f32873e73\" ,\" binding_type\" : \" apn\" ,\" credential_sid\" : null,\" date_created\" : \" 2015-07-30T20:00:00Z\" ,\" date_updated\" : \" 2015-07-30T20:00:00Z\" ,\" endpoint\" : \" 26607274\" ,\" identity\" : \" 24987039\" ,\" notification_protocol_version\" : \" 3\" ,\" service_sid\" : \" ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" sid\" : \" BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" ,\" tags\" : [\" 26607274\" ],\" url\" : \" https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" }],\" meta\" : {\" first_page_url\" : \" https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=50&Page=0\" ,\" key\" : \" bindings\" ,\" next_page_url\" : null,\" page\" : 0,\" page_size\" : 50,\" previous_page_url\" : null,\" url\" : \" https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=50&Page=0\" }}" , TwilioRestClient .HTTP_STATUS_CODE_OK );
175175 twilioRestClient .getObjectMapper ();
176176 result = new ObjectMapper ();
177177 }};
0 commit comments