Package com.atlassian.jira.functest.rule
Class Rules
java.lang.Object
com.atlassian.jira.functest.rule.Rules
Creates
TestRule
instances.- Since:
- v6.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.junit.rules.RuleChain
chain()
static org.junit.rules.TestRule
cleanAttachments
(Supplier<AttachmentFileControl> attachmentsControlSupplier) static org.junit.rules.TestRule
cleanDirectory
(Supplier<File> directory) static org.junit.rules.TestRule
copyAttachments
(Supplier<JIRAEnvironmentData> environmentDataSupplier, Supplier<AttachmentFileControl> attachmentsControlSupplier, String sourceSubPath) static org.junit.rules.TestRule
enableAttachments
(Supplier<AttachmentFileControl> attachmentsControlSupplier) static org.junit.rules.TestRule
prepareAttachments
(Supplier<JIRAEnvironmentData> environmentDataSupplier, Supplier<Backdoor> backdoorSupplier, String sourceSubPath) Prepares attachment files, but not database entries.static TemporaryFileRule
-
Constructor Details
-
Rules
public Rules()
-
-
Method Details
-
prepareAttachments
public static org.junit.rules.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 directorybackdoorSupplier
- Supplier for backdoorsourceSubPath
- Path relative toenvironmentData.getXMLDataLocation()
(typically ".../jira-webdriver-tests/src/main/xml/")
-
chain
public static org.junit.rules.RuleChain chain() -
enableAttachments
public static org.junit.rules.TestRule enableAttachments(Supplier<AttachmentFileControl> attachmentsControlSupplier) -
cleanAttachments
public static org.junit.rules.TestRule cleanAttachments(Supplier<AttachmentFileControl> attachmentsControlSupplier) -
copyAttachments
public static org.junit.rules.TestRule copyAttachments(Supplier<JIRAEnvironmentData> environmentDataSupplier, Supplier<AttachmentFileControl> attachmentsControlSupplier, String sourceSubPath) -
cleanDirectory
-
temporaryFile
-