Search in sources :

Example 1 with GoogleCloudStorageReadChannel

use of com.google.cloud.hadoop.gcsio.GoogleCloudStorageReadChannel in project beam by apache.

the class GcsUtilTest method testGCSChannelCloseIdempotent.

@Test
public void testGCSChannelCloseIdempotent() throws IOException {
    SeekableByteChannel channel = new GoogleCloudStorageReadChannel(null, "dummybucket", "dummyobject", null, new ClientRequestHelper<StorageObject>());
    channel.close();
    channel.close();
}
Also used : SeekableByteChannel(java.nio.channels.SeekableByteChannel) GoogleCloudStorageReadChannel(com.google.cloud.hadoop.gcsio.GoogleCloudStorageReadChannel) StorageObject(com.google.api.services.storage.model.StorageObject) Test(org.junit.Test)

Aggregations

StorageObject (com.google.api.services.storage.model.StorageObject)1 GoogleCloudStorageReadChannel (com.google.cloud.hadoop.gcsio.GoogleCloudStorageReadChannel)1 SeekableByteChannel (java.nio.channels.SeekableByteChannel)1 Test (org.junit.Test)1