Example usage for org.apache.hadoop.fs.contract ContractTestUtils createAndVerifyFile

List of usage examples for org.apache.hadoop.fs.contract ContractTestUtils createAndVerifyFile

Introduction

In this page you can find the example usage for org.apache.hadoop.fs.contract ContractTestUtils createAndVerifyFile.

Prototype

public static void createAndVerifyFile(FileSystem fs, Path parent, final long fileSize) throws IOException 

Source Link

Document

Creates and reads a file with the given size.

Usage

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);
}