public class

LicenseTestHelper

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.util.LicenseTestHelper

Summary

Fields
public static String CONF_CLUSTER_LICENSE
public static String CONF_V1_LICENSE
public static String CONF_V2_LICENSE
public static String LICENSE_COMMERCIAL
public static String LICENSE_EVALUATION_EXPIRED
public static String LICENSE_IMAHIMA
public static String PARTNER_IMAHIMA
public static Properties defaultProperties
Public Constructors
LicenseTestHelper()
Public Methods
static void clearLicenseRegistry()
Clear the license manager to a pristine state to avoid confusion with subsequent tests.
static Properties loadProperties(String fileName)
static void setupLicenseRegistry()
Configures the LicenseManager such that calls to getLicense(String) via getInstance() do not return null.
static void setupLicenseRegistry(String licenseKey)
Configures the LicenseManager such that calls to getLicense(String) via getInstance() return a specific type of license.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static String CONF_CLUSTER_LICENSE

public static String CONF_V1_LICENSE

public static String CONF_V2_LICENSE

public static String LICENSE_COMMERCIAL

public static String LICENSE_EVALUATION_EXPIRED

public static String LICENSE_IMAHIMA

public static String PARTNER_IMAHIMA

public static Properties defaultProperties

Public Constructors

public LicenseTestHelper ()

Public Methods

public static void clearLicenseRegistry ()

Clear the license manager to a pristine state to avoid confusion with subsequent tests.

Throws
LicenseException

public static Properties loadProperties (String fileName)

public static void setupLicenseRegistry ()

Configures the LicenseManager such that calls to getLicense(String) via getInstance() do not return null. In the interest of unity, any tests that call this method must also call clearLicenseRegistry(). This method sets the current License to LICENSE_EVALUATION_EXPIRED.

Throws
LicenseException

public static void setupLicenseRegistry (String licenseKey)

Configures the LicenseManager such that calls to getLicense(String) via getInstance() return a specific type of license. In the interest of unity, any tests that call this method must also call clearLicenseRegistry().

Parameters
licenseKey a key to configure the license manager with.