net.ontopia.utils
Class TestFileUtils

java.lang.Object
  extended by net.ontopia.utils.TestFileUtils

public class TestFileUtils
extends Object


Field Summary
static String testdataInputRoot
           
 
Constructor Summary
TestFileUtils()
           
 
Method Summary
static String getTestdataOutputDirectory()
          Returns the folder used for test output files
static String getTestInputFile(String directory, String filename)
           
static String getTestInputFile(String directory, String subDirectory, String filename)
           
static String getTestInputFile(String directory, String subDirectory, String subSubDirectory, String filename)
           
static List getTestInputFiles(ResourcesDirectoryReader directoryReader, String resourcesDirectory)
           
static List getTestInputFiles(String directory, ResourcesDirectoryReader.ResourcesFilterIF filter)
           
static List getTestInputFiles(String directory, String filter)
           
static List getTestInputFiles(String baseDirectory, String subDirectory, ResourcesDirectoryReader.ResourcesFilterIF filter)
           
static List getTestInputFiles(String baseDirectory, String subDirectory, String filter)
           
static File getTestOutputFile(String directory, String filename)
           
static File getTestOutputFile(String directory, String subDirectory, String filename)
           
static File getTestOutputFile(String directory, String subDirectory, String subSubDirectory, String filename)
           
static File getTransferredTestInputFile(String directory, String filename)
           
static File getTransferredTestInputFile(String directory, String subDirectory, String filename)
           
static File getTransferredTestInputFile(String directory, String subDirectory, String subSubDirectory, String filename)
           
static void transferTestInputDirectory(ResourcesDirectoryReader directoryReader)
           
static void transferTestInputDirectory(String directory)
           
static void transferTestInputDirectory(String directory, boolean searchSubdirectories)
           
static void transferTestInputDirectory(String directory, boolean searchSubdirectories, ResourcesDirectoryReader.ResourcesFilterIF filter)
           
static void transferTestInputDirectory(String directory, boolean searchSubdirectories, String filter)
           
static void transferTestInputDirectory(String directory, ResourcesDirectoryReader.ResourcesFilterIF filter)
           
static void transferTestInputDirectory(String directory, String filter)
           
static void verifyDirectory(String dir)
           
static void verifyDirectory(String base, String dir)
           
static void verifyDirectory(String base, String sub1, String sub2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testdataInputRoot

public static final String testdataInputRoot
See Also:
Constant Field Values
Constructor Detail

TestFileUtils

public TestFileUtils()
Method Detail

verifyDirectory

public static void verifyDirectory(String dir)

verifyDirectory

public static void verifyDirectory(String base,
                                   String dir)

verifyDirectory

public static void verifyDirectory(String base,
                                   String sub1,
                                   String sub2)

getTestInputFiles

public static List getTestInputFiles(String baseDirectory,
                                     String subDirectory,
                                     String filter)

getTestInputFiles

public static List getTestInputFiles(String baseDirectory,
                                     String subDirectory,
                                     ResourcesDirectoryReader.ResourcesFilterIF filter)

getTestInputFiles

public static List getTestInputFiles(String directory,
                                     String filter)

getTestInputFiles

public static List getTestInputFiles(String directory,
                                     ResourcesDirectoryReader.ResourcesFilterIF filter)

getTestInputFiles

public static List getTestInputFiles(ResourcesDirectoryReader directoryReader,
                                     String resourcesDirectory)

getTestInputFile

public static String getTestInputFile(String directory,
                                      String filename)

getTestInputFile

public static String getTestInputFile(String directory,
                                      String subDirectory,
                                      String filename)

getTestInputFile

public static String getTestInputFile(String directory,
                                      String subDirectory,
                                      String subSubDirectory,
                                      String filename)

getTransferredTestInputFile

public static File getTransferredTestInputFile(String directory,
                                               String filename)
                                        throws IOException,
                                               FileNotFoundException
Throws:
IOException
FileNotFoundException

getTransferredTestInputFile

public static File getTransferredTestInputFile(String directory,
                                               String subDirectory,
                                               String filename)
                                        throws IOException,
                                               FileNotFoundException
Throws:
IOException
FileNotFoundException

getTransferredTestInputFile

public static File getTransferredTestInputFile(String directory,
                                               String subDirectory,
                                               String subSubDirectory,
                                               String filename)
                                        throws IOException,
                                               FileNotFoundException
Throws:
IOException
FileNotFoundException

transferTestInputDirectory

public static void transferTestInputDirectory(String directory)
                                       throws IOException
Throws:
IOException

transferTestInputDirectory

public static void transferTestInputDirectory(String directory,
                                              boolean searchSubdirectories)
                                       throws IOException
Throws:
IOException

transferTestInputDirectory

public static void transferTestInputDirectory(String directory,
                                              String filter)
                                       throws IOException
Throws:
IOException

transferTestInputDirectory

public static void transferTestInputDirectory(String directory,
                                              boolean searchSubdirectories,
                                              String filter)
                                       throws IOException
Throws:
IOException

transferTestInputDirectory

public static void transferTestInputDirectory(String directory,
                                              ResourcesDirectoryReader.ResourcesFilterIF filter)
                                       throws IOException
Throws:
IOException

transferTestInputDirectory

public static void transferTestInputDirectory(String directory,
                                              boolean searchSubdirectories,
                                              ResourcesDirectoryReader.ResourcesFilterIF filter)
                                       throws IOException
Throws:
IOException

transferTestInputDirectory

public static void transferTestInputDirectory(ResourcesDirectoryReader directoryReader)
                                       throws IOException
Throws:
IOException

getTestOutputFile

public static File getTestOutputFile(String directory,
                                     String filename)

getTestOutputFile

public static File getTestOutputFile(String directory,
                                     String subDirectory,
                                     String filename)

getTestOutputFile

public static File getTestOutputFile(String directory,
                                     String subDirectory,
                                     String subSubDirectory,
                                     String filename)

getTestdataOutputDirectory

public static String getTestdataOutputDirectory()
Returns the folder used for test output files



Copyright © 2000-2012 Ontopia.