Package org.apache.torque.generator.file
Class FileTestUtils
java.lang.Object
org.apache.torque.generator.file.FileTestUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertFileListEquals(List<File> fileList, File... expected) Checks that a file list contains all the expected paths and no other paths.static voidassertFileListEquals(Fileset fileset, File... expectedPaths) Checks that the file list of the Fileset contains all the expected paths and no other paths.createSetFrom(String... content) Creates as set containing the Strings in content.
-
Constructor Details
-
FileTestUtils
public FileTestUtils()
-
-
Method Details
-
assertFileListEquals
Checks that the file list of the Fileset contains all the expected paths and no other paths.- Parameters:
fileset- The Fileset which file list should be checked.expectedPaths- the paths which should be in the fileset.- Throws:
IOException- if Fileset#getFiles() throws it.
-
assertFileListEquals
Checks that a file list contains all the expected paths and no other paths.- Parameters:
fileList- The list of files which should be checked.expected- the paths which should be in the file list.
-
createSetFrom
Creates as set containing the Strings in content.- Parameters:
content- The Strings which should be in the set.- Returns:
- the Set containing all the strings.
-