com.atlassian.confluence.it
Class AcceptanceTestHelper

java.lang.Object
  extended by com.atlassian.confluence.it.AcceptanceTestHelper

public class AcceptanceTestHelper
extends Object


Constructor Summary
AcceptanceTestHelper()
           
 
Method Summary
protected static String getPropertyValue(String k, String v, Properties p)
          Retrieves a property value, replacing values like ${token} using the Properties to look them up.
static File getTempDirectory()
           
static File getTempFileDir()
           
static File loadFileFromClasspath(String resourceName)
          Deprecated. since 2.10 use Classpath.getFile(String).
static byte[] loadFromClasspath(String resourceName)
          Deprecated. since 2.10 use Classpath.getBytes(String).
static Properties loadProperties(String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptanceTestHelper

public AcceptanceTestHelper()
Method Detail

loadFileFromClasspath

@Deprecated
public static File loadFileFromClasspath(String resourceName)
Deprecated. since 2.10 use Classpath.getFile(String).


loadFromClasspath

@Deprecated
public static byte[] loadFromClasspath(String resourceName)
Deprecated. since 2.10 use Classpath.getBytes(String).


getTempFileDir

public static File getTempFileDir()

getTempDirectory

public static File getTempDirectory()

loadProperties

public static Properties loadProperties(String fileName)

getPropertyValue

protected static String getPropertyValue(String k,
                                         String v,
                                         Properties p)
Retrieves a property value, replacing values like ${token} using the Properties to look them up.

It will leave unresolved properties alone, trying for System properties, and implements reparsing (in the case that the value of a property contains a key), and will not loop endlessly on a pair like test = ${test}.



Copyright © 2003-2013 Atlassian. All Rights Reserved.