@@ -158,7 +158,7 @@ public void testFetch() {
158158 @ Test
159159 public void testBatchCopy () {
160160 String key = "copyTo" + Math .random ();
161- BucketManager .Batch ops = BucketManager .createBatch ().
161+ BucketManager .Batch ops = new BucketManager .Batch ().
162162 copy (TestConfig .bucket , TestConfig .key , TestConfig .bucket , key );
163163 try {
164164 Response r = bucketManager .batch (ops );
@@ -168,7 +168,7 @@ public void testBatchCopy() {
168168 e .printStackTrace ();
169169 fail ();
170170 }
171- ops = BucketManager .createBatch ().delete (TestConfig .bucket , key );
171+ ops = new BucketManager .Batch ().delete (TestConfig .bucket , key );
172172 try {
173173 Response r = bucketManager .batch (ops );
174174 BatchStatus [] bs = r .jsonToObject (BatchStatus [].class );
@@ -189,7 +189,7 @@ public void testBatchMove() {
189189 }
190190 String key2 = key + "to" ;
191191 StringMap x = new StringMap ().put (key , key2 );
192- BucketManager .Batch ops = BucketManager .createBatch ().move (TestConfig .bucket ,
192+ BucketManager .Batch ops = new BucketManager .Batch ().move (TestConfig .bucket ,
193193 key , TestConfig .bucket , key2 );
194194 try {
195195 Response r = bucketManager .batch (ops );
@@ -217,7 +217,7 @@ public void testBatchRename() {
217217 fail ();
218218 }
219219 String key2 = key + "to" ;
220- BucketManager .Batch ops = BucketManager .createBatch ().rename (TestConfig .bucket , key , key2 );
220+ BucketManager .Batch ops = new BucketManager .Batch ().rename (TestConfig .bucket , key , key2 );
221221 try {
222222 Response r = bucketManager .batch (ops );
223223 BatchStatus [] bs = r .jsonToObject (BatchStatus [].class );
@@ -237,7 +237,7 @@ public void testBatchRename() {
237237 @ Test
238238 public void testBatchStat () {
239239 String [] array = {"java-sdk.html" };
240- BucketManager .Batch ops = BucketManager .createBatch ().stat (TestConfig .bucket , array );
240+ BucketManager .Batch ops = new BucketManager .Batch ().stat (TestConfig .bucket , array );
241241 try {
242242 Response r = bucketManager .batch (ops );
243243 BatchStatus [] bs = r .jsonToObject (BatchStatus [].class );
@@ -267,7 +267,7 @@ public void testBatch() {
267267 fail ();
268268 }
269269
270- BucketManager .Batch ops = BucketManager .createBatch ()
270+ BucketManager .Batch ops = new BucketManager .Batch ()
271271 .copy (TestConfig .bucket , TestConfig .key , TestConfig .bucket , key )
272272 .move (TestConfig .bucket , key1 , TestConfig .bucket , key2 )
273273 .rename (TestConfig .bucket , key3 , key4 )
0 commit comments