public class FileTestUtils extends Object
Constructor and Description |
---|
FileTestUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
assertFileListEquals(Fileset fileset,
File... expectedPaths)
Checks that the file list of the Fileset contains all the
expected paths and no other paths.
|
static void |
assertFileListEquals(List<File> fileList,
File... expected)
Checks that a file list contains all the
expected paths and no other paths.
|
static Set<String> |
createSetFrom(String... content)
Creates as set containing the Strings in content.
|
public static void assertFileListEquals(Fileset fileset, File... expectedPaths) throws IOException
fileset
- The Fileset which file list should be checked.expectedPaths
- the paths which should be in the fileset.IOException
- if Fileset#getFiles() throws it.public static void assertFileListEquals(List<File> fileList, File... expected)
fileList
- The list of files which should be checked.expected
- the paths which should be in the file list.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.