com.xebialabs.platform.test.testng.rules
Class TempDir

java.lang.Object
  extended by com.xebialabs.platform.test.testng.rules.TempDir
All Implemented Interfaces:
RuleBase

public class TempDir
extends java.lang.Object
implements RuleBase


Constructor Summary
TempDir()
           
TempDir(java.io.File tempDirParent)
           
 
Method Summary
 void create()
           
 void delete()
           
 java.io.File getRoot()
           
 org.junit.rules.TemporaryFolder getWrapped()
           
 java.io.File newFile()
           
 java.io.File newFile(java.lang.String fileName)
           
 java.io.File newFolder()
           
 java.io.File newFolder(java.lang.String... folderNames)
           
 java.io.File newFolder(java.lang.String folder)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempDir

public TempDir()

TempDir

public TempDir(java.io.File tempDirParent)
Method Detail

create

public void create()
            throws java.io.IOException
Throws:
java.io.IOException

newFile

public java.io.File newFile(java.lang.String fileName)
                     throws java.io.IOException
Throws:
java.io.IOException

newFile

public java.io.File newFile()
                     throws java.io.IOException
Throws:
java.io.IOException

newFolder

public java.io.File newFolder(java.lang.String folder)
                       throws java.io.IOException
Throws:
java.io.IOException

newFolder

public java.io.File newFolder(java.lang.String... folderNames)
                       throws java.io.IOException
Throws:
java.io.IOException

newFolder

public java.io.File newFolder()
                       throws java.io.IOException
Throws:
java.io.IOException

getRoot

public java.io.File getRoot()

delete

public void delete()

getWrapped

public org.junit.rules.TemporaryFolder getWrapped()

start

public void start()
Specified by:
start in interface RuleBase

stop

public void stop()
Specified by:
stop in interface RuleBase