com.atlassian.confluence.it.resource
Class TempDirectory
java.lang.Object
com.atlassian.confluence.it.resource.TempDirectory
public class TempDirectory
- extends Object
Returns files in a temporary location for integration tests.
Method Summary |
static File |
getDirectory()
Returns the directory at the root of the temporary file location. |
static File |
getFile(String path)
Returns a File where you can store a temporary file with a given path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TempDirectory
public TempDirectory()
getDirectory
public static File getDirectory()
- Returns the directory at the root of the temporary file location.
getFile
public static File getFile(String path)
- Returns a File where you can store a temporary file with a given path. Creates
any parent directories required to save data to this file.
- Parameters:
path
- the path of the file to return, relative to the temporary directory
Copyright © 2003-2011 Atlassian. All Rights Reserved.