@@ -85,25 +85,25 @@ public void testAddQueryDateRangeLowerBound() throws MalformedURLException {
8585 Request r = new Request (HttpMethod .GET , Domains .API .toString (), "/2010-04-01/foobar" );
8686 r .addQueryDateRange ("baz" , Range .greaterThan (new DateTime (2014 , 1 , 1 , 0 , 0 )));
8787 URL url = r .constructURL ();
88- URL expected = new URL ("https://api.twilio.com/2010-04-01/foobar?baz>=2014-01-01 " );
88+ URL expected = new URL ("https://api.twilio.com/2010-04-01/foobar?baz>=2014-01-01T00:00:00 " );
8989 assertUrlsEqual (expected , url );
9090 }
9191
9292 @ Test
9393 public void testAddQueryDateRangeUpperBound () throws MalformedURLException {
9494 Request r = new Request (HttpMethod .GET , Domains .API .toString (), "/2010-04-01/foobar" );
95- r .addQueryDateRange ("baz" , Range .lessThan (new DateTime (2014 , 1 , 1 , 0 , 0 )));
95+ r .addQueryDateRange ("baz" , Range .lessThan (new DateTime (2014 , 1 , 1 , 22 , 0 )));
9696 URL url = r .constructURL ();
97- URL expected = new URL ("https://api.twilio.com/2010-04-01/foobar?baz<=2014-01-01 " );
97+ URL expected = new URL ("https://api.twilio.com/2010-04-01/foobar?baz<=2014-01-01T22:00:00 " );
9898 assertUrlsEqual (expected , url );
9999 }
100100
101101 @ Test
102102 public void testAddQueryDateRangeClosed () throws MalformedURLException {
103103 Request r = new Request (HttpMethod .GET , Domains .API .toString (), "/2010-04-01/foobar" );
104- r .addQueryDateRange ("baz" , Range .closed (new DateTime (2014 , 1 , 1 , 0 , 0 ), new DateTime (2014 , 6 , 1 , 0 , 0 )));
104+ r .addQueryDateRange ("baz" , Range .closed (new DateTime (2014 , 1 , 10 , 14 , 0 ), new DateTime (2014 , 6 , 1 , 16 , 0 )));
105105 URL url = r .constructURL ();
106- URL expected = new URL ("https://api.twilio.com/2010-04-01/foobar?baz>=2014-01-01 &baz<=2014-06-01 " );
106+ URL expected = new URL ("https://api.twilio.com/2010-04-01/foobar?baz>=2014-01-10T14:00:00 &baz<=2014-06-01T16:00:00 " );
107107 assertUrlsEqual (expected , url );
108108 }
109109
0 commit comments