com.xebialabs.platform.test.testng.rules
Class TempDir
java.lang.Object
com.xebialabs.platform.test.testng.rules.TempDir
- All Implemented Interfaces:
- RuleBase
public class TempDir
- extends java.lang.Object
- implements RuleBase
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TempDir
public TempDir()
TempDir
public TempDir(java.io.File tempDirParent)
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