Skip to content

Commit f146697

Browse files
authored
---
yaml --- r: 4427 b: refs/heads/gcs-nio c: dc566ba h: refs/heads/master i: 4425: 2b25d92 4423: eeddf9e
1 parent 981eeff commit f146697

9 files changed

Lines changed: 10 additions & 18 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ refs/tags/v0.0.12: 2fd8066e891fb3dfea69b65f6bf6461db79342b9
1111
refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212
refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313
refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
14-
refs/heads/gcs-nio: 7cdcb6c431a6621d46f53199617848fbc25b3269
14+
refs/heads/gcs-nio: dc566ba6477cdaa463915735414731283cfc5d49
1515
refs/heads/logging-alpha: db5312bffa7fccac194f6a7feb8cc3066de16aff
1616
refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717
refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0

branches/gcs-nio/gcloud-java-contrib/gcloud-java-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageFileAttributeViewTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import com.google.common.testing.EqualsTester;
2323
import com.google.common.testing.NullPointerTester;
24-
import com.google.cloud.storage.testing.LocalStorageHelper;
2524

2625
import org.junit.Before;
2726
import org.junit.Rule;

branches/gcs-nio/gcloud-java-contrib/gcloud-java-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageFileAttributesTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import com.google.common.testing.EqualsTester;
2323
import com.google.common.testing.NullPointerTester;
2424
import com.google.cloud.storage.Acl;
25-
import com.google.cloud.storage.testing.LocalStorageHelper;
2625

2726
import org.junit.Before;
2827
import org.junit.Test;

branches/gcs-nio/gcloud-java-contrib/gcloud-java-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProviderTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
import com.google.common.collect.ImmutableList;
3030
import com.google.common.testing.NullPointerTester;
31-
import com.google.cloud.storage.testing.LocalStorageHelper;
3231

3332
import org.junit.Before;
3433
import org.junit.Rule;

branches/gcs-nio/gcloud-java-contrib/gcloud-java-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import com.google.common.testing.EqualsTester;
2323
import com.google.common.testing.NullPointerTester;
2424
import com.google.cloud.storage.StorageOptions;
25-
import com.google.cloud.storage.testing.LocalStorageHelper;
2625

2726
import org.junit.Before;
2827
import org.junit.Test;

branches/gcs-nio/gcloud-java-contrib/gcloud-java-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageOptionsTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import com.google.common.testing.NullPointerTester;
2323
import com.google.cloud.storage.Acl;
24-
import com.google.cloud.storage.testing.LocalStorageHelper;
2524

2625
import org.junit.Before;
2726
import org.junit.Test;

branches/gcs-nio/gcloud-java-contrib/gcloud-java-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStoragePathTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import com.google.common.collect.Iterables;
2323
import com.google.common.testing.EqualsTester;
2424
import com.google.common.testing.NullPointerTester;
25-
import com.google.cloud.storage.testing.LocalStorageHelper;
2625

2726
import org.junit.Before;
2827
import org.junit.Rule;

branches/gcs-nio/gcloud-java-storage/src/main/java/com/google/cloud/storage/testing/FakeStorageRpc.java renamed to branches/gcs-nio/gcloud-java-contrib/gcloud-java-nio/src/test/java/com/google/cloud/storage/contrib/nio/FakeStorageRpc.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.storage.testing;
17+
package com.google.cloud.storage.contrib.nio;
1818

1919
import com.google.api.services.storage.model.Bucket;
2020
import com.google.api.services.storage.model.StorageObject;
@@ -63,7 +63,7 @@
6363
* </ul>
6464
*/
6565
@NotThreadSafe
66-
public class FakeStorageRpc implements StorageRpc {
66+
class FakeStorageRpc implements StorageRpc {
6767

6868
// fullname -> metadata
6969
Map<String, StorageObject> metadata = new HashMap<>();

branches/gcs-nio/gcloud-java-storage/src/main/java/com/google/cloud/storage/testing/LocalStorageHelper.java renamed to branches/gcs-nio/gcloud-java-contrib/gcloud-java-nio/src/test/java/com/google/cloud/storage/contrib/nio/LocalStorageHelper.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015 Google Inc. All Rights Reserved.
2+
* Copyright 2016 Google Inc. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.storage.testing;
17+
package com.google.cloud.storage.contrib.nio;
1818

1919
import com.google.cloud.spi.ServiceRpcFactory;
2020
import com.google.cloud.storage.spi.StorageRpc;
@@ -24,15 +24,14 @@
2424
* Utility to create an in-memory storage configuration for testing. Storage options can be
2525
* obtained via the {@link #options()} method. Returned options will point to FakeStorageRpc.
2626
*/
27-
public class LocalStorageHelper {
27+
class LocalStorageHelper {
2828

2929
// used for testing. Will throw if you pass it an option.
3030
private static final FakeStorageRpc instance = new FakeStorageRpc(true);
3131

3232
/**
33-
* Returns a {@link StorageOptions} that use the static FakeStorageRpc instance,
34-
* and resets it first so you start from a clean slate.
35-
* That instance will throw if you pass it any option. *
33+
* Returns a {@link StorageOptions} that use the static FakeStorageRpc instance, and resets it
34+
* first so you start from a clean slate. That instance will throw if you pass it any option.
3635
*/
3736
public static StorageOptions options() {
3837
instance.reset();
@@ -49,8 +48,8 @@ public StorageRpc create(StorageOptions options) {
4948
}
5049

5150
/**
52-
* Returns a {@link StorageOptions} that creates a new FakeStorageRpc instance
53-
* with the given option.
51+
* Returns a {@link StorageOptions} that creates a new FakeStorageRpc instance with the given
52+
* option.
5453
*/
5554
public static StorageOptions customOptions(final boolean throwIfOptions) {
5655
return StorageOptions.builder()
@@ -64,5 +63,4 @@ public StorageRpc create(StorageOptions options) {
6463
})
6564
.build();
6665
}
67-
6866
}

0 commit comments

Comments
 (0)