@Test public void testGetS3BucketName() { filename = new S3FileName( SCHEME, BUCKET_NAME, "", FileType.FOLDER ); when( s3FileObjectBucketSpy.getName() ).thenReturn( filename ); s3FileObjectBucketSpy.getS3BucketName(); }
@Override protected String getS3BucketName() { String s3BucketName = getName().getPath(); if ( s3BucketName.indexOf( DELIMITER, 1 ) > 1 ) { s3BucketName = s3BucketName.substring( 0, s3BucketName.indexOf( DELIMITER, 1 ) ); } else { s3BucketName = s3BucketName.replaceAll( DELIMITER, "" ); } return s3BucketName; }
S3FileObject extends S3CommonFileObject { @Override protected String getS3BucketName() { String s3BucketName = getName().getPath(); if ( s3BucketName.indexOf( DELIMITER, 1 ) > 1 ) { s3BucketName = s3BucketName.substring( 0, s3BucketName.indexOf( DELIMITER, 1 ) ); } else { s3BucketName = s3BucketName.replaceAll( DELIMITER, "" ); } return s3BucketName; } }
S3FileObject extends S3CommonFileObject { @Override protected String getS3BucketName() { String s3BucketName = getName().getPath(); if ( s3BucketName.indexOf( DELIMITER, 1 ) > 1 ) { s3BucketName = s3BucketName.substring( 0, s3BucketName.indexOf( DELIMITER, 1 ) ); } else { s3BucketName = s3BucketName.replaceAll( DELIMITER, "" ); } return s3BucketName; } protected  S3FileObject( final AbstractFileName name, final S3FileSystem fileSystem ); }
S3FileObject extends S3CommonFileObject { @Override protected String getS3BucketName() { String s3BucketName = getName().getPath(); if ( s3BucketName.indexOf( DELIMITER, 1 ) > 1 ) { s3BucketName = s3BucketName.substring( 0, s3BucketName.indexOf( DELIMITER, 1 ) ); } else { s3BucketName = s3BucketName.replaceAll( DELIMITER, "" ); } return s3BucketName; } protected  S3FileObject( final AbstractFileName name, final S3FileSystem fileSystem );  }
S3FileObject extends S3CommonFileObject { @Override protected String getS3BucketName() { String s3BucketName = getName().getPath(); if ( s3BucketName.indexOf( DELIMITER, 1 ) > 1 ) { s3BucketName = s3BucketName.substring( 0, s3BucketName.indexOf( DELIMITER, 1 ) ); } else { s3BucketName = s3BucketName.replaceAll( DELIMITER, "" ); } return s3BucketName; } protected  S3FileObject( final AbstractFileName name, final S3FileSystem fileSystem );   }