Skip to content
Browse files

Fix map implementation of parameters.

  • Loading branch information...
1 parent f586712 commit 9aaeef7895bee4e1374633f80157a14c614754e4 @wangzijian wangzijian committed Oct 16, 2012
View
4 src/main/java/com/snda/storage/core/support/Request.java
@@ -99,8 +99,8 @@ private static String toString(Object value) {
private String bucket;
private String key;
private Credential credential;
- private Map<String, Object> parameters = Maps.newHashMap();
- private Map<String, Object> headers = Maps.newHashMap();
+ private Map<String, Object> parameters = Maps.newLinkedHashMap();
+ private Map<String, Object> headers = Maps.newLinkedHashMap();
private Builder() {
}
View
2 src/test/java/com/snda/storage/core/support/BucketOperationTest.java
@@ -110,9 +110,9 @@ public void testListObjectsWithCriteria() {
endpoint(endpoint).
bucket(bucket).
parameter("delimiter", "/").
+ parameter("prefix", "p").
parameter("marker", "m").
parameter("max-keys", 500).
- parameter("prefix", "p").
header("Date", formatDateTime(now)).
build(),
ListBucketResult.class)).thenReturn(expected);

0 comments on commit 9aaeef7

Please sign in to comment.
Something went wrong with that request. Please try again.