Repository: jclouds
Updated Branches:
  refs/heads/test-for-jclouds-278 f0c434f1e -> 713fb3157


Updated test case


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/713fb315
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/713fb315
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/713fb315

Branch: refs/heads/test-for-jclouds-278
Commit: 713fb3157f73ec6e9d39775ab7f07a9c378939f5
Parents: f0c434f
Author: Andrew Phillips <[email protected]>
Authored: Sat May 31 17:01:27 2014 -0400
Committer: Andrew Phillips <[email protected]>
Committed: Sat May 31 17:01:27 2014 -0400

----------------------------------------------------------------------
 .../ParseObjectInfoListFromJsonResponseTest.java    | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/713fb315/apis/swift/src/test/java/org/jclouds/openstack/swift/functions/ParseObjectInfoListFromJsonResponseTest.java
----------------------------------------------------------------------
diff --git 
a/apis/swift/src/test/java/org/jclouds/openstack/swift/functions/ParseObjectInfoListFromJsonResponseTest.java
 
b/apis/swift/src/test/java/org/jclouds/openstack/swift/functions/ParseObjectInfoListFromJsonResponseTest.java
index 6fa6ffd..ad9688b 100644
--- 
a/apis/swift/src/test/java/org/jclouds/openstack/swift/functions/ParseObjectInfoListFromJsonResponseTest.java
+++ 
b/apis/swift/src/test/java/org/jclouds/openstack/swift/functions/ParseObjectInfoListFromJsonResponseTest.java
@@ -44,18 +44,19 @@ public class ParseObjectInfoListFromJsonResponseTest {
 
    @Test
    public void testNoUrlDecodingOfResponse() throws Exception {
-       String contentName = "swift-test-content-%20-1401395399020";
+      // '%x' is not a valid URL encoding
+      String contentName = "swift-test-content-%x-1401395399020";
 
-       String jsonObjectList =
-          "[{\"last_modified\": \"2014-05-29T20:30:03.845660\", " +
-            "\"bytes\": 19, " +
-            "\"name\": \"" + contentName + "\", " +
-            "\"content_type\": \"application/unknown\"}]";
+      String jsonObjectList =
+         "[{\"last_modified\": \"2014-05-29T20:30:03.845660\", " +
+         "\"bytes\": 19, " +
+         "\"name\": \"" + contentName + "\", " +
+         "\"content_type\": \"application/unknown\"}]";
 
       InputStream stream = Strings2.toInputStream(jsonObjectList);
 
       ParseObjectInfoListFromJsonResponse parser =
-          new ParseObjectInfoListFromJsonResponse(new GsonWrapper(new Gson()));
+         new ParseObjectInfoListFromJsonResponse(new GsonWrapper(new Gson()));
 
       GeneratedHttpRequest.Builder builder = new 
GeneratedHttpRequest.Builder();
       builder.method("method")
@@ -69,5 +70,4 @@ public class ParseObjectInfoListFromJsonResponseTest {
       ObjectInfo objectInfo = parser.apply(stream).iterator().next();
       assertEquals(objectInfo.getName(), contentName);
    }
-
 }
\ No newline at end of file

Reply via email to