Skip to content

Commit

Permalink
Update FakeStorageRpc with master changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Jun 13, 2016
1 parent fed21ed commit 3e06a58
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@

import com.google.api.services.storage.model.Bucket;
import com.google.api.services.storage.model.StorageObject;
import com.google.cloud.storage.spi.StorageRpc;
import com.google.cloud.storage.Storage;
import com.google.cloud.storage.StorageException;
import com.google.cloud.storage.spi.RpcBatch;
import com.google.cloud.storage.spi.StorageRpc;

import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -191,8 +192,9 @@ public boolean delete(StorageObject object, Map<Option, ?> options) throws Stora
}

@Override
public BatchResponse batch(BatchRequest request) throws StorageException {
return null;
public RpcBatch createBatch() {
//return new DefaultRpcBatch(storage);
throw new UnsupportedOperationException();
}

@Override
Expand Down Expand Up @@ -327,7 +329,7 @@ private void potentiallyThrow(Map<Option, ?> options) throws UnsupportedOperatio
throw new UnsupportedOperationException();
}
}

// Returns true if this is a folder. Adds it to folders if it isn't already there.
private static boolean processedAsFolder(StorageObject so, String delimiter, String prefix, /* inout */ Map<String, StorageObject> folders) {
if (delimiter == null) {
Expand Down

0 comments on commit 3e06a58

Please sign in to comment.