Skip to content

Commit 85257a0

Browse files
jartmziccard
authored andcommitted
FakeStorageRpc with master changes
1 parent 1305c4d commit 85257a0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

gcloud-java-storage/src/main/java/com/google/cloud/storage/testing/FakeStorageRpc.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ public boolean delete(StorageObject object, Map<Option, ?> options) throws Stora
193193

194194
@Override
195195
public RpcBatch createBatch() {
196-
return null;
196+
//return new DefaultRpcBatch(storage);
197+
throw new UnsupportedOperationException();
197198
}
198199

199200
@Override
@@ -328,7 +329,7 @@ private void potentiallyThrow(Map<Option, ?> options) throws UnsupportedOperatio
328329
throw new UnsupportedOperationException();
329330
}
330331
}
331-
332+
332333
// Returns true if this is a folder. Adds it to folders if it isn't already there.
333334
private static boolean processedAsFolder(StorageObject so, String delimiter, String prefix, /* inout */ Map<String, StorageObject> folders) {
334335
if (delimiter == null) {

0 commit comments

Comments
 (0)