From cfe06effb7721825210c163e557fab439b3de488 Mon Sep 17 00:00:00 2001 From: "adrian.f.cole" Date: Mon, 9 Nov 2009 04:13:33 +0000 Subject: [PATCH] fixed unit test git-svn-id: http://jclouds.googlecode.com/svn/trunk@2237 3d8758e0-26b5-11de-8745-db77d3ebf521 --- .../cloudservers/CloudServersClientTest.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/rackspace/cloudservers/core/src/test/java/org/jclouds/rackspace/cloudservers/CloudServersClientTest.java b/rackspace/cloudservers/core/src/test/java/org/jclouds/rackspace/cloudservers/CloudServersClientTest.java index 979d65ca7c..fb03266878 100755 --- a/rackspace/cloudservers/core/src/test/java/org/jclouds/rackspace/cloudservers/CloudServersClientTest.java +++ b/rackspace/cloudservers/core/src/test/java/org/jclouds/rackspace/cloudservers/CloudServersClientTest.java @@ -210,8 +210,8 @@ public class CloudServersClientTest { new Object[] { changesSince(now).maxResults(1).startAt(2) }); assertEquals(httpMethod.getEndpoint().getHost(), "localhost"); assertEquals(httpMethod.getEndpoint().getPath(), "/servers"); - assertEquals(httpMethod.getEndpoint().getQuery(), "format=json" + "&limit=1&changes-since=" - + now.getMillis() / 1000 + "&offset=2"); + assertEquals(httpMethod.getEndpoint().getQuery(), "format=json&changes-since=" + + now.getMillis() / 1000 + "&limit=1&offset=2"); assertEquals(httpMethod.getMethod(), HttpMethod.GET); assertEquals(httpMethod.getHeaders().size(), 0); assertEquals(processor.createResponseParser(method, httpMethod).getClass(), @@ -272,8 +272,8 @@ public class CloudServersClientTest { new Object[] { changesSince(now).maxResults(1).startAt(2) }); assertEquals(httpMethod.getEndpoint().getHost(), "localhost"); assertEquals(httpMethod.getEndpoint().getPath(), "/flavors"); - assertEquals(httpMethod.getEndpoint().getQuery(), "format=json" + "&limit=1&changes-since=" - + now.getMillis() / 1000 + "&offset=2"); + assertEquals(httpMethod.getEndpoint().getQuery(), "format=json&changes-since=" + + now.getMillis() / 1000 + "&limit=1&offset=2"); assertEquals(httpMethod.getMethod(), HttpMethod.GET); assertEquals(httpMethod.getHeaders().size(), 0); assertEquals(processor.createResponseParser(method, httpMethod).getClass(), @@ -303,8 +303,8 @@ public class CloudServersClientTest { new Object[] { withDetails().changesSince(now).maxResults(1).startAt(2) }); assertEquals(httpMethod.getEndpoint().getHost(), "localhost"); assertEquals(httpMethod.getEndpoint().getPath(), "/flavors/detail"); - assertEquals(httpMethod.getEndpoint().getQuery(), "format=json" + "&limit=1&changes-since=" - + now.getMillis() / 1000 + "&offset=2"); + assertEquals(httpMethod.getEndpoint().getQuery(), "format=json&changes-since=" + + now.getMillis() / 1000 + "&limit=1&offset=2"); assertEquals(httpMethod.getMethod(), HttpMethod.GET); assertEquals(httpMethod.getHeaders().size(), 0); assertEquals(processor.createResponseParser(method, httpMethod).getClass(), @@ -365,8 +365,8 @@ public class CloudServersClientTest { new Object[] { changesSince(now).maxResults(1).startAt(2) }); assertEquals(httpMethod.getEndpoint().getHost(), "localhost"); assertEquals(httpMethod.getEndpoint().getPath(), "/images"); - assertEquals(httpMethod.getEndpoint().getQuery(), "format=json" + "&limit=1&changes-since=" - + now.getMillis() / 1000 + "&offset=2"); + assertEquals(httpMethod.getEndpoint().getQuery(), "format=json&changes-since=" + + now.getMillis() / 1000 + "&limit=1&offset=2"); assertEquals(httpMethod.getMethod(), HttpMethod.GET); assertEquals(httpMethod.getHeaders().size(), 0); assertEquals(processor.createResponseParser(method, httpMethod).getClass(), @@ -381,8 +381,8 @@ public class CloudServersClientTest { new Object[] { withDetails().changesSince(now).maxResults(1).startAt(2) }); assertEquals(httpMethod.getEndpoint().getHost(), "localhost"); assertEquals(httpMethod.getEndpoint().getPath(), "/images/detail"); - assertEquals(httpMethod.getEndpoint().getQuery(), "format=json" + "&limit=1&changes-since=" - + now.getMillis() / 1000 + "&offset=2"); + assertEquals(httpMethod.getEndpoint().getQuery(), "format=json&changes-since=" + + now.getMillis() / 1000 + "&limit=1&offset=2"); assertEquals(httpMethod.getMethod(), HttpMethod.GET); assertEquals(httpMethod.getHeaders().size(), 0); assertEquals(processor.createResponseParser(method, httpMethod).getClass(), @@ -585,8 +585,8 @@ public class CloudServersClientTest { new Object[] { changesSince(now).maxResults(1).startAt(2) }); assertEquals(httpMethod.getEndpoint().getHost(), "localhost"); assertEquals(httpMethod.getEndpoint().getPath(), "/shared_ip_groups"); - assertEquals(httpMethod.getEndpoint().getQuery(), "format=json" + "&limit=1&changes-since=" - + now.getMillis() / 1000 + "&offset=2"); + assertEquals(httpMethod.getEndpoint().getQuery(), "format=json&changes-since=" + + now.getMillis() / 1000 + "&limit=1&offset=2"); assertEquals(httpMethod.getMethod(), HttpMethod.GET); assertEquals(httpMethod.getHeaders().size(), 0); assertEquals(processor.createResponseParser(method, httpMethod).getClass(), @@ -619,8 +619,8 @@ public class CloudServersClientTest { new Object[] { withDetails().changesSince(now).maxResults(1).startAt(2) }); assertEquals(httpMethod.getEndpoint().getHost(), "localhost"); assertEquals(httpMethod.getEndpoint().getPath(), "/shared_ip_groups/detail"); - assertEquals(httpMethod.getEndpoint().getQuery(), "format=json" + "&limit=1&changes-since=" - + now.getMillis() / 1000 + "&offset=2"); + assertEquals(httpMethod.getEndpoint().getQuery(), "format=json&changes-since=" + + now.getMillis() / 1000 + "&limit=1&offset=2"); assertEquals(httpMethod.getMethod(), HttpMethod.GET); assertEquals(httpMethod.getHeaders().size(), 0); assertEquals(processor.createResponseParser(method, httpMethod).getClass(),