List of usage examples for org.apache.hadoop.fs.contract ContractTestUtils createAndVerifyFile
public static void createAndVerifyFile(FileSystem fs, Path parent, final long fileSize) throws IOException
From source file:com.aliyun.fs.oss.TestAliyunOSSBlockOutputStream.java
License:Apache License
@Test public void testZeroByteUpload() throws IOException { ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 0); }
From source file:com.aliyun.fs.oss.TestAliyunOSSBlockOutputStream.java
License:Apache License
@Test public void testRegularUpload() throws IOException { ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 1024 * 1024); }
From source file:com.aliyun.fs.oss.TestAliyunOSSBlockOutputStream.java
License:Apache License
@Test public void testMultiPartUpload() throws IOException { ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 6 * 1024 * 1024); }
From source file:com.aliyun.fs.oss.TestAliyunOSSBlockOutputStream.java
License:Apache License
@Test public void testHugeUpload() throws IOException { ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 32 * 1024 * 1024); }