@Test public void getPermissionsDefault() throws Exception { Mockito.when(mClient.getS3AccountOwner()).thenThrow(AmazonClientException.class); ObjectUnderFileSystem.ObjectPermissions permissions = mS3UnderFileSystem.getPermissions(); Assert.assertEquals(DEFAULT_OWNER, permissions.getGroup()); Assert.assertEquals(DEFAULT_OWNER, permissions.getOwner()); Assert.assertEquals(DEFAULT_MODE, permissions.getMode()); }
@Override protected ObjectPermissions getPermissions() { return mPermissions.get(); }
S3AUnderFileSystem extends ObjectUnderFileSystem { @Override protected ObjectPermissions getPermissions() { return mPermissions.get(); } }
S3AUnderFileSystem extends ObjectUnderFileSystem { @Override protected ObjectPermissions getPermissions() { return mPermissions.get(); } protected  S3AUnderFileSystem(AlluxioURI uri, AmazonS3Client amazonS3Client, String bucketName,
      ExecutorService executor, TransferManager transferManager, UnderFileSystemConfiguration conf,
      boolean streamingUploadEnabled); }
S3AUnderFileSystem extends ObjectUnderFileSystem { @Override protected ObjectPermissions getPermissions() { return mPermissions.get(); } protected  S3AUnderFileSystem(AlluxioURI uri, AmazonS3Client amazonS3Client, String bucketName,
      ExecutorService executor, TransferManager transferManager, UnderFileSystemConfiguration conf,
      boolean streamingUploadEnabled); static AWSCredentialsProvider createAwsCredentialsProvider(
      UnderFileSystemConfiguration conf); static S3AUnderFileSystem createInstance(AlluxioURI uri,
      UnderFileSystemConfiguration conf); @Override String getUnderFSType(); @Override void setOwner(String path, String user, String group); @Override void setMode(String path, short mode); @Override void cleanup(); @Override boolean createEmptyObject(String key); }
S3AUnderFileSystem extends ObjectUnderFileSystem { @Override protected ObjectPermissions getPermissions() { return mPermissions.get(); } protected  S3AUnderFileSystem(AlluxioURI uri, AmazonS3Client amazonS3Client, String bucketName,
      ExecutorService executor, TransferManager transferManager, UnderFileSystemConfiguration conf,
      boolean streamingUploadEnabled); static AWSCredentialsProvider createAwsCredentialsProvider(
      UnderFileSystemConfiguration conf); static S3AUnderFileSystem createInstance(AlluxioURI uri,
      UnderFileSystemConfiguration conf); @Override String getUnderFSType(); @Override void setOwner(String path, String user, String group); @Override void setMode(String path, short mode); @Override void cleanup(); @Override boolean createEmptyObject(String key);  }