public class

AcceptanceTestHelper

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.it.AcceptanceTestHelper

Summary

Public Constructors
AcceptanceTestHelper()
Public Methods
static File generateAttachment(String filename, String text)
static File generateLargeAttachment(String filename, long bytes)
static File getTempDirectory()
static File getTempFileDir()
static File loadFileFromClasspath(String resourceName)
This method is deprecated. since 2.10 use getFile(String).
static byte[] loadFromClasspath(String resourceName)
This method is deprecated. since 2.10 use getBytes(String).
static Properties loadProperties(String fileName)
Protected Methods
static String getPropertyValue(String k, String v, Properties p)
Retrieves a property value, replacing values like ${token} using the Properties to look them up.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AcceptanceTestHelper ()

Public Methods

public static File generateAttachment (String filename, String text)

public static File generateLargeAttachment (String filename, long bytes)

public static File getTempDirectory ()

public static File getTempFileDir ()

public static File loadFileFromClasspath (String resourceName)

This method is deprecated.
since 2.10 use getFile(String).

public static byte[] loadFromClasspath (String resourceName)

This method is deprecated.
since 2.10 use getBytes(String).

public static Properties loadProperties (String fileName)

Protected Methods

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}.