Skip to content

Commit

Permalink
Rename LocalGcsHelper to LocalStorageHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-philippe-martin authored and mziccard committed Jun 29, 2016
1 parent ea758b3 commit 3299fef
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import static com.google.common.truth.Truth.assertThat;
import static java.nio.charset.StandardCharsets.UTF_8;

import com.google.cloud.storage.testing.LocalGcsHelper;
import com.google.cloud.storage.testing.LocalStorageHelper;
import com.google.common.testing.EqualsTester;
import com.google.common.testing.NullPointerTester;

Expand Down Expand Up @@ -52,7 +52,7 @@ public class CloudStorageFileAttributeViewTest {

@Before
public void before() {
CloudStorageFileSystemProvider.setGCloudOptions(LocalGcsHelper.options());
CloudStorageFileSystemProvider.setGCloudOptions(LocalStorageHelper.options());
path = Paths.get(URI.create("gs://red/water"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import static java.nio.charset.StandardCharsets.UTF_8;

import com.google.cloud.storage.Acl;
import com.google.cloud.storage.testing.LocalGcsHelper;
import com.google.cloud.storage.testing.LocalStorageHelper;
import com.google.common.testing.EqualsTester;
import com.google.common.testing.NullPointerTester;

Expand Down Expand Up @@ -48,7 +48,7 @@ public class CloudStorageFileAttributesTest {

@Before
public void before() {
CloudStorageFileSystemProvider.setGCloudOptions(LocalGcsHelper.options());
CloudStorageFileSystemProvider.setGCloudOptions(LocalStorageHelper.options());
path = Paths.get(URI.create("gs://bucket/randompath"));
dir = Paths.get(URI.create("gs://bucket/randompath/"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static java.nio.file.StandardOpenOption.TRUNCATE_EXISTING;
import static java.nio.file.StandardOpenOption.WRITE;

import com.google.cloud.storage.testing.LocalGcsHelper;
import com.google.cloud.storage.testing.LocalStorageHelper;
import com.google.common.collect.ImmutableList;
import com.google.common.testing.NullPointerTester;

Expand Down Expand Up @@ -91,7 +91,7 @@ public class CloudStorageFileSystemProviderTest {

@Before
public void before() {
CloudStorageFileSystemProvider.setGCloudOptions(LocalGcsHelper.options());
CloudStorageFileSystemProvider.setGCloudOptions(LocalStorageHelper.options());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
import static com.google.common.truth.Truth.assertThat;
import static java.nio.charset.StandardCharsets.UTF_8;

import com.google.cloud.storage.testing.LocalGcsHelper;
import com.google.cloud.storage.StorageOptions;
import com.google.cloud.storage.testing.LocalStorageHelper;
import com.google.common.testing.EqualsTester;
import com.google.common.testing.NullPointerTester;

Expand Down Expand Up @@ -56,7 +57,7 @@ public class CloudStorageFileSystemTest {

@Before
public void before() {
CloudStorageFileSystemProvider.setGCloudOptions(LocalGcsHelper.options());
CloudStorageFileSystemProvider.setGCloudOptions(LocalStorageHelper.options());
}

@Test
Expand Down Expand Up @@ -130,7 +131,8 @@ public void testNullness() throws IOException, NoSuchMethodException, SecurityEx
NullPointerTester tester =
new NullPointerTester()
.ignore(CloudStorageFileSystem.class.getMethod("equals", Object.class))
.setDefault(CloudStorageConfiguration.class, CloudStorageConfiguration.DEFAULT);
.setDefault(CloudStorageConfiguration.class, CloudStorageConfiguration.DEFAULT)
.setDefault(StorageOptions.class, LocalStorageHelper.options());
tester.testAllPublicStaticMethods(CloudStorageFileSystem.class);
tester.testAllPublicInstanceMethods(fs);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import static java.nio.charset.StandardCharsets.UTF_8;

import com.google.cloud.storage.Acl;
import com.google.cloud.storage.testing.LocalGcsHelper;
import com.google.cloud.storage.testing.LocalStorageHelper;
import com.google.common.testing.NullPointerTester;

import org.junit.Before;
Expand All @@ -42,7 +42,7 @@ public class CloudStorageOptionsTest {

@Before
public void before() {
CloudStorageFileSystemProvider.setGCloudOptions(LocalGcsHelper.options());
CloudStorageFileSystemProvider.setGCloudOptions(LocalStorageHelper.options());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import static com.google.common.truth.Truth.assertThat;

import com.google.cloud.storage.testing.LocalGcsHelper;
import com.google.cloud.storage.testing.LocalStorageHelper;
import com.google.common.collect.Iterables;
import com.google.common.testing.EqualsTester;
import com.google.common.testing.NullPointerTester;
Expand Down Expand Up @@ -47,7 +47,7 @@ public class CloudStoragePathTest {

@Before
public void before() {
CloudStorageFileSystemProvider.setGCloudOptions(LocalGcsHelper.options());
CloudStorageFileSystemProvider.setGCloudOptions(LocalStorageHelper.options());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Utility to create an in-memory storage configuration for testing. Storage options can be
* obtained via the {@link #options()} method. Returned options will point to FakeStorageRpc.
*/
public class LocalGcsHelper {
public class LocalStorageHelper {

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

0 comments on commit 3299fef

Please sign in to comment.