@@ -100,7 +100,7 @@ public void testReload() throws Exception {
100100 @ Test
101101 public void testUpdate () throws Exception {
102102 BlobInfo updatedInfo = BLOB_INFO .toBuilder ().cacheControl ("c" ).build ();
103- expect (storage .update (updatedInfo )).andReturn (updatedInfo );
103+ expect (storage .update (updatedInfo , new Storage . BlobTargetOption [ 0 ] )).andReturn (updatedInfo );
104104 replay (storage );
105105 Blob updatedBlob = blob .update (updatedInfo );
106106 assertSame (storage , blob .storage ());
@@ -184,8 +184,7 @@ public void testGetOne() throws Exception {
184184 @ Test
185185 public void testGetSome () throws Exception {
186186 List <BlobInfo > blobInfoList = Arrays .asList (BLOB_INFO_ARRAY );
187- expect (storage .get (BLOB_INFO_ARRAY [0 ], BLOB_INFO_ARRAY [1 ],
188- Arrays .copyOfRange (BLOB_INFO_ARRAY , 2 , BLOB_INFO_ARRAY .length ))).andReturn (blobInfoList );
187+ expect (storage .get (BLOB_INFO_ARRAY )).andReturn (blobInfoList );
189188 replay (storage );
190189 List <Blob > result = Blob .get (storage , BLOB_INFO_ARRAY );
191190 assertEquals (blobInfoList .size (), result .size ());
@@ -197,8 +196,7 @@ public void testGetSome() throws Exception {
197196 @ Test
198197 public void testGetSomeNull () throws Exception {
199198 List <BlobInfo > blobInfoList = Arrays .asList (BLOB_INFO_ARRAY [0 ], null , BLOB_INFO_ARRAY [2 ]);
200- expect (storage .get (BLOB_INFO_ARRAY [0 ], BLOB_INFO_ARRAY [1 ],
201- Arrays .copyOfRange (BLOB_INFO_ARRAY , 2 , BLOB_INFO_ARRAY .length ))).andReturn (blobInfoList );
199+ expect (storage .get (BLOB_INFO_ARRAY )).andReturn (blobInfoList );
202200 replay (storage );
203201 List <Blob > result = Blob .get (storage , BLOB_INFO_ARRAY );
204202 assertEquals (blobInfoList .size (), result .size ());
@@ -233,8 +231,7 @@ public void testUpdateSome() throws Exception {
233231 for (BlobInfo info : BLOB_INFO_ARRAY ) {
234232 blobInfoList .add (info .toBuilder ().contentType ("content" ).build ());
235233 }
236- expect (storage .update (BLOB_INFO_ARRAY [0 ], BLOB_INFO_ARRAY [1 ],
237- Arrays .copyOfRange (BLOB_INFO_ARRAY , 2 , BLOB_INFO_ARRAY .length ))).andReturn (blobInfoList );
234+ expect (storage .update (BLOB_INFO_ARRAY )).andReturn (blobInfoList );
238235 replay (storage );
239236 List <Blob > result = Blob .update (storage , BLOB_INFO_ARRAY );
240237 assertEquals (blobInfoList .size (), result .size ());
@@ -248,8 +245,7 @@ public void testUpdateSomeNull() throws Exception {
248245 List <BlobInfo > blobInfoList = Arrays .asList (
249246 BLOB_INFO_ARRAY [0 ].toBuilder ().contentType ("content" ).build (), null ,
250247 BLOB_INFO_ARRAY [2 ].toBuilder ().contentType ("content" ).build ());
251- expect (storage .update (BLOB_INFO_ARRAY [0 ], BLOB_INFO_ARRAY [1 ],
252- Arrays .copyOfRange (BLOB_INFO_ARRAY , 2 , BLOB_INFO_ARRAY .length ))).andReturn (blobInfoList );
248+ expect (storage .update (BLOB_INFO_ARRAY )).andReturn (blobInfoList );
253249 replay (storage );
254250 List <Blob > result = Blob .update (storage , BLOB_INFO_ARRAY );
255251 assertEquals (blobInfoList .size (), result .size ());
@@ -280,9 +276,7 @@ public void testDeleteOne() throws Exception {
280276 @ Test
281277 public void testDeleteSome () throws Exception {
282278 List <Boolean > deleleResultList = Arrays .asList (true , true , true );
283- expect (storage .delete (BLOB_INFO_ARRAY [0 ], BLOB_INFO_ARRAY [1 ],
284- Arrays .copyOfRange (BLOB_INFO_ARRAY , 2 , BLOB_INFO_ARRAY .length )))
285- .andReturn (deleleResultList );
279+ expect (storage .delete (BLOB_INFO_ARRAY )).andReturn (deleleResultList );
286280 replay (storage );
287281 List <Boolean > result = Blob .delete (storage , BLOB_INFO_ARRAY );
288282 assertEquals (deleleResultList .size (), result .size ());
0 commit comments