net.ontopia.utils
Class TestFileUtils

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

public class TestFileUtils
extends java.lang.Object


Field Summary
static java.lang.String testdataInputRoot
           
 
Constructor Summary
TestFileUtils()
           
 
Method Summary
static java.lang.String getTestdataOutputDirectory()
          Returns the folder used for test output files
static java.lang.String getTestInputFile(java.lang.String directory, java.lang.String filename)
           
static java.lang.String getTestInputFile(java.lang.String directory, java.lang.String subDirectory, java.lang.String filename)
           
static java.lang.String getTestInputFile(java.lang.String directory, java.lang.String subDirectory, java.lang.String subSubDirectory, java.lang.String filename)
           
static java.util.List getTestInputFiles(ResourcesDirectoryReader directoryReader, java.lang.String resourcesDirectory)
           
static java.util.List getTestInputFiles(java.lang.String directory, ResourcesDirectoryReader.ResourcesFilterIF filter)
           
static java.util.List getTestInputFiles(java.lang.String directory, java.lang.String filter)
           
static java.util.List getTestInputFiles(java.lang.String baseDirectory, java.lang.String subDirectory, ResourcesDirectoryReader.ResourcesFilterIF filter)
           
static java.util.List getTestInputFiles(java.lang.String baseDirectory, java.lang.String subDirectory, java.lang.String filter)
           
static java.io.File getTestOutputFile(java.lang.String directory, java.lang.String filename)
           
static java.io.File getTestOutputFile(java.lang.String directory, java.lang.String subDirectory, java.lang.String filename)
           
static java.io.File getTestOutputFile(java.lang.String directory, java.lang.String subDirectory, java.lang.String subSubDirectory, java.lang.String filename)
           
static java.io.File getTransferredTestInputFile(java.lang.String directory, java.lang.String filename)
           
static java.io.File getTransferredTestInputFile(java.lang.String directory, java.lang.String subDirectory, java.lang.String filename)
           
static java.io.File getTransferredTestInputFile(java.lang.String directory, java.lang.String subDirectory, java.lang.String subSubDirectory, java.lang.String filename)
           
static void transferTestInputDirectory(ResourcesDirectoryReader directoryReader)
           
static void transferTestInputDirectory(java.lang.String directory)
           
static void transferTestInputDirectory(java.lang.String directory, boolean searchSubdirectories)
           
static void transferTestInputDirectory(java.lang.String directory, boolean searchSubdirectories, ResourcesDirectoryReader.ResourcesFilterIF filter)
           
static void transferTestInputDirectory(java.lang.String directory, boolean searchSubdirectories, java.lang.String filter)
           
static void transferTestInputDirectory(java.lang.String directory, ResourcesDirectoryReader.ResourcesFilterIF filter)
           
static void transferTestInputDirectory(java.lang.String directory, java.lang.String filter)
           
static void verifyDirectory(java.lang.String dir)
           
static void verifyDirectory(java.lang.String base, java.lang.String dir)
           
static void verifyDirectory(java.lang.String base, java.lang.String sub1, java.lang.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 java.lang.String testdataInputRoot
See Also:
Constant Field Values
Constructor Detail

TestFileUtils

public TestFileUtils()
Method Detail

verifyDirectory

public static void verifyDirectory(java.lang.String dir)

verifyDirectory

public static void verifyDirectory(java.lang.String base,
                                   java.lang.String dir)

verifyDirectory

public static void verifyDirectory(java.lang.String base,
                                   java.lang.String sub1,
                                   java.lang.String sub2)

getTestInputFiles

public static java.util.List getTestInputFiles(java.lang.String baseDirectory,
                                               java.lang.String subDirectory,
                                               java.lang.String filter)

getTestInputFiles

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

getTestInputFiles

public static java.util.List getTestInputFiles(java.lang.String directory,
                                               java.lang.String filter)

getTestInputFiles

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

getTestInputFiles

public static java.util.List getTestInputFiles(ResourcesDirectoryReader directoryReader,
                                               java.lang.String resourcesDirectory)

getTestInputFile

public static java.lang.String getTestInputFile(java.lang.String directory,
                                                java.lang.String filename)

getTestInputFile

public static java.lang.String getTestInputFile(java.lang.String directory,
                                                java.lang.String subDirectory,
                                                java.lang.String filename)

getTestInputFile

public static java.lang.String getTestInputFile(java.lang.String directory,
                                                java.lang.String subDirectory,
                                                java.lang.String subSubDirectory,
                                                java.lang.String filename)

getTransferredTestInputFile

public static java.io.File getTransferredTestInputFile(java.lang.String directory,
                                                       java.lang.String filename)
                                                throws java.io.IOException,
                                                       java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

getTransferredTestInputFile

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

getTransferredTestInputFile

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

transferTestInputDirectory

public static void transferTestInputDirectory(java.lang.String directory)
                                       throws java.io.IOException
Throws:
java.io.IOException

transferTestInputDirectory

public static void transferTestInputDirectory(java.lang.String directory,
                                              boolean searchSubdirectories)
                                       throws java.io.IOException
Throws:
java.io.IOException

transferTestInputDirectory

public static void transferTestInputDirectory(java.lang.String directory,
                                              java.lang.String filter)
                                       throws java.io.IOException
Throws:
java.io.IOException

transferTestInputDirectory

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

transferTestInputDirectory

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

transferTestInputDirectory

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

transferTestInputDirectory

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

getTestOutputFile

public static java.io.File getTestOutputFile(java.lang.String directory,
                                             java.lang.String filename)

getTestOutputFile

public static java.io.File getTestOutputFile(java.lang.String directory,
                                             java.lang.String subDirectory,
                                             java.lang.String filename)

getTestOutputFile

public static java.io.File getTestOutputFile(java.lang.String directory,
                                             java.lang.String subDirectory,
                                             java.lang.String subSubDirectory,
                                             java.lang.String filename)

getTestdataOutputDirectory

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



Copyright © 2000-2012 Ontopia.