Package org.apache.torque.generator.file

# Klasse FileTestUtils

java.lang.Object
org.apache.torque.generator.file.FileTestUtils

public class FileTestUtils extends Object

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `FileTestUtils()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `static void`
  `assertFileListEquals(List<File> fileList, File... expected)`
  Checks that a file list contains all the expected paths and no other paths.
  `static void`
  `assertFileListEquals(org.apache.torque.generator.file.Fileset fileset, File... expectedPaths)`
  Checks that the file list of the Fileset contains all the expected paths and no other paths.
  `static Set<String>`
  `createSetFrom(String... content)`
  Creates as set containing the Strings in content.

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Konstruktordetails

  - ### FileTestUtils

    public FileTestUtils()

- ## Methodendetails

  - ### assertFileListEquals

    public static void assertFileListEquals(org.apache.torque.generator.file.Fileset fileset, File... expectedPaths) throws IOException
    Checks that the file list of the Fileset contains all the expected paths and no other paths.
    Parameter:
      `fileset` - The Fileset which file list should be checked.
      `expectedPaths` - the paths which should be in the fileset.
    Löst aus:
      `IOException` - if Fileset#getFiles() throws it.

  - ### assertFileListEquals

    public static void assertFileListEquals(List<File> fileList, File... expected)
    Checks that a file list contains all the expected paths and no other paths.
    Parameter:
      `fileList` - The list of files which should be checked.
      `expected` - the paths which should be in the file list.

  - ### createSetFrom

    public static Set<String> createSetFrom(String... content)
    Creates as set containing the Strings in content.
    Parameter:
      `content` - The Strings which should be in the set.
    Gibt zurück:
      the Set containing all the strings.