org.utgenome.util
Class TestHelper

java.lang.Object
  extended by org.utgenome.util.TestHelper

public class TestHelper
extends Object

Utilities for writing JUnit code

Author:
leo

Constructor Summary
TestHelper()
           
 
Method Summary
static
<T> File
createTempDir()
           
static
<T> File
createTempFileFrom(Class<T> referenceClass, String srcFileName)
          Create a temporary file
static
<T> File
createTempFileFrom(Class<T> referenceClass, String srcFileName, File output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestHelper

public TestHelper()
Method Detail

createTempFileFrom

public static <T> File createTempFileFrom(Class<T> referenceClass,
                                          String srcFileName)
                               throws IOException
Create a temporary file

Type Parameters:
T -
Parameters:
referenceClass -
srcFileName -
Returns:
Throws:
IOException

createTempFileFrom

public static <T> File createTempFileFrom(Class<T> referenceClass,
                                          String srcFileName,
                                          File output)
                               throws IOException
Throws:
IOException

createTempDir

public static <T> File createTempDir()
                          throws IOException
Throws:
IOException


Copyright © 2007-2012 utgenome.org. All Rights Reserved.