use of org.apache.hop.vfs.s3.s3.vfs.S3FileName in project hop by apache.
the class S3FileSystemTest method setUp.
@Before
public void setUp() throws Exception {
fileName = new S3FileName(S3FileNameTest.SCHEME, "/", "", FileType.FOLDER);
fileSystem = new S3FileSystem(fileName, new FileSystemOptions());
}
use of org.apache.hop.vfs.s3.s3.vfs.S3FileName in project hop by apache.
the class S3FileNameParserIT method testParseUri_withKeys.
@Test
public void testParseUri_withKeys() throws Exception {
FileNameParser parser = S3FileNameParser.getInstance();
String origUri = "s3:///fooBucket/rcf-emr-staging";
S3FileName filename = (S3FileName) parser.parseUri(null, null, origUri);
assertEquals("fooBucket", filename.getBucketId());
assertEquals(origUri, filename.getURI());
}
use of org.apache.hop.vfs.s3.s3.vfs.S3FileName in project hop by apache.
the class S3FileObjectTest method testGetS3BucketName.
@Test
public void testGetS3BucketName() {
filename = new S3FileName(SCHEME, BUCKET_NAME, "", FileType.FOLDER);
when(s3FileObjectBucketSpy.getName()).thenReturn(filename);
s3FileObjectBucketSpy.getS3BucketName();
}
Aggregations