com.atlassian.confluence.it.resource
Class TempDirectory

java.lang.Object
  extended by com.atlassian.confluence.it.resource.TempDirectory

public class TempDirectory
extends Object

Returns files in a temporary location for integration tests.


Constructor Summary
TempDirectory()
           
 
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
 

Constructor Detail

TempDirectory

public TempDirectory()
Method Detail

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-2013 Atlassian. All Rights Reserved.