Search in sources :

Example 6 with S3FileObject

use of org.apache.hop.vfs.s3.s3.vfs.S3FileObject in project hop by apache.

the class S3NFileObjectTest method testGetS3Object.

@Test
public void testGetS3Object() throws Exception {
    when(s3ServiceMock.getObject(anyString(), anyString())).thenReturn(new S3Object());
    S3NFileObject s3FileObject = new S3NFileObject(filename, fileSystemSpy);
    S3Object s3Object = s3FileObject.getS3Object();
    assertNotNull(s3Object);
}
Also used : S3NFileObject(org.apache.hop.vfs.s3.s3n.vfs.S3NFileObject) Test(org.junit.Test)

Aggregations

S3FileObject (org.apache.hop.vfs.s3.s3.vfs.S3FileObject)4 Test (org.junit.Test)4 S3FileName (org.apache.hop.vfs.s3.s3.vfs.S3FileName)3 AmazonS3 (com.amazonaws.services.s3.AmazonS3)2 ArrayList (java.util.ArrayList)2 DefaultFileSystemManager (org.apache.commons.vfs2.impl.DefaultFileSystemManager)2 VfsComponentContext (org.apache.commons.vfs2.provider.VfsComponentContext)2 S3NFileObject (org.apache.hop.vfs.s3.s3n.vfs.S3NFileObject)2 Before (org.junit.Before)2 StorageUnitConverter (org.apache.hop.core.util.StorageUnitConverter)1 S3FileSystem (org.apache.hop.vfs.s3.s3.vfs.S3FileSystem)1 S3HopProperty (org.apache.hop.vfs.s3.s3common.S3HopProperty)1 S3NFileName (org.apache.hop.vfs.s3.s3n.vfs.S3NFileName)1 S3NFileSystem (org.apache.hop.vfs.s3.s3n.vfs.S3NFileSystem)1