Java Code Examples for org.apache.hadoop.fs.swift.util.SwiftTestUtils#noteAction()

The following examples show how to use org.apache.hadoop.fs.swift.util.SwiftTestUtils#noteAction() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestSwiftFileSystemDelete.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testDeleteEmptyFile() throws IOException {
  final Path file = new Path("/test/testDeleteEmptyFile");
  createEmptyFile(file);
  SwiftTestUtils.noteAction("about to delete");
  assertDeleted(file, true);
}
 
Example 2
Source File: TestSwiftFileSystemDelete.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testDeleteEmptyFileTwice() throws IOException {
  final Path file = new Path("/test/testDeleteEmptyFileTwice");
  createEmptyFile(file);
  assertDeleted(file, true);
  SwiftTestUtils.noteAction("multiple creates, and deletes");
  assertFalse("Delete returned true", fs.delete(file, false));
  createEmptyFile(file);
  assertDeleted(file, true);
  assertFalse("Delete returned true", fs.delete(file, false));
}
 
Example 3
Source File: TestSwiftFileSystemDelete.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testDeleteEmptyFile() throws IOException {
  final Path file = new Path("/test/testDeleteEmptyFile");
  createEmptyFile(file);
  SwiftTestUtils.noteAction("about to delete");
  assertDeleted(file, true);
}
 
Example 4
Source File: TestSwiftFileSystemDelete.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testDeleteEmptyFileTwice() throws IOException {
  final Path file = new Path("/test/testDeleteEmptyFileTwice");
  createEmptyFile(file);
  assertDeleted(file, true);
  SwiftTestUtils.noteAction("multiple creates, and deletes");
  assertFalse("Delete returned true", fs.delete(file, false));
  createEmptyFile(file);
  assertDeleted(file, true);
  assertFalse("Delete returned true", fs.delete(file, false));
}
 
Example 5
Source File: TestSwiftFileSystemDelete.java    From sahara-extra with Apache License 2.0 5 votes vote down vote up
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testDeleteEmptyFile() throws IOException {
  final Path file = new Path("/test/testDeleteFile");
  createEmptyFile(file);
  SwiftTestUtils.noteAction("about to delete");
  assertDeleted(file, true);
}