Description
@Test public void testListStatusFile() throws Throwable { describe("test the listStatus(path) on a file"); Path f = touchf("liststatusfile"); verifyStatusArrayMatchesFile(f, getFileSystem().listStatus(f)); }
In this case, first create a file f, then listStatus on f,expect listStatus returns an array of one FileStatus. But this is not consistent with the declarations in FileSystem, i.e.
"
List the statuses of the files/directories in the given path if the path is a directory.
Parameters:
f given path
Returns:
the statuses of the files/directories in the given patch
"
Which is the expected? The behave in fs contract test or in FileSystem?