public class

Rules

extends Object
java.lang.Object
   ↳ com.atlassian.jira.functest.rule.Rules

Class Overview

Creates org.junit.rules.TestRule instances.

Summary

Public Constructors
Rules()
Public Methods
static RuleChain chain()
static TestRule cleanAttachments(Supplier<AttachmentsControl> attachmentsControlSupplier)
static TestRule cleanDirectory(File directory)
static TestRule copyAttachments(Supplier<JIRAEnvironmentData> environmentDataSupplier, Supplier<AttachmentsControl> attachmentsControlSupplier, String sourceSubPath)
static TestRule copyDirectory(File sourceDirectory, File targetDirectory)
static TestRule enableAttachments(Supplier<AttachmentsControl> attachmentsControlSupplier)
static TestRule prepareAttachments(Supplier<JIRAEnvironmentData> environmentDataSupplier, Supplier<Backdoor> backdoorSupplier, String sourceSubPath)
Prepares attachment files, but not database entries.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Rules ()

Public Methods

public static RuleChain chain ()

public static TestRule cleanAttachments (Supplier<AttachmentsControl> attachmentsControlSupplier)

public static TestRule cleanDirectory (File directory)

public static TestRule copyAttachments (Supplier<JIRAEnvironmentData> environmentDataSupplier, Supplier<AttachmentsControl> attachmentsControlSupplier, String sourceSubPath)

public static TestRule copyDirectory (File sourceDirectory, File targetDirectory)

public static TestRule enableAttachments (Supplier<AttachmentsControl> attachmentsControlSupplier)

public static TestRule prepareAttachments (Supplier<JIRAEnvironmentData> environmentDataSupplier, Supplier<Backdoor> backdoorSupplier, String sourceSubPath)

Prepares attachment files, but not database entries.

Parameters
environmentDataSupplier Supplier for environment, which specifies attachment source and target directory
backdoorSupplier Supplier for backdoor
sourceSubPath Path relative to environmentData.getXMLDataLocation() (typically ".../jira-webdriver-tests/src/main/xml/")