public class Rules extends Object
TestRule
instances.Constructor and Description |
---|
Rules() |
Modifier and Type | Method and Description |
---|---|
static org.junit.rules.RuleChain |
chain() |
static org.junit.rules.TestRule |
cleanAttachments(java.util.function.Supplier<AttachmentFileControl> attachmentFileControlSupplier) |
static org.junit.rules.TestRule |
cleanDirectory(java.util.function.Supplier<File> directory) |
static org.junit.rules.TestRule |
copyAttachments(java.util.function.Supplier<JIRAEnvironmentData> environmentDataSupplier,
java.util.function.Supplier<AttachmentFileControl> attachmentFileControlSupplier,
String sourceSubPath) |
static org.junit.rules.TestRule |
enableAttachments(java.util.function.Supplier<com.atlassian.jira.testkit.client.AttachmentsControl> attachmentsControlSupplier) |
static org.junit.rules.TestRule |
prepareAttachments(java.util.function.Supplier<JIRAEnvironmentData> environmentDataSupplier,
java.util.function.Supplier<Backdoor> backdoorSupplier,
String sourceSubPath)
Prepares attachment files, but not database entries.
|
static TemporaryFileRule |
temporaryFile() |
public static org.junit.rules.TestRule prepareAttachments(java.util.function.Supplier<JIRAEnvironmentData> environmentDataSupplier, java.util.function.Supplier<Backdoor> backdoorSupplier, String sourceSubPath)
environmentDataSupplier
- Supplier for environment, which specifies attachment source and target directorybackdoorSupplier
- Supplier for backdoorsourceSubPath
- Path relative to environmentData.getXMLDataLocation()
(typically
".../jira-webdriver-tests/src/main/xml/")public static org.junit.rules.RuleChain chain()
public static org.junit.rules.TestRule enableAttachments(java.util.function.Supplier<com.atlassian.jira.testkit.client.AttachmentsControl> attachmentsControlSupplier)
public static org.junit.rules.TestRule cleanAttachments(java.util.function.Supplier<AttachmentFileControl> attachmentFileControlSupplier)
public static org.junit.rules.TestRule copyAttachments(java.util.function.Supplier<JIRAEnvironmentData> environmentDataSupplier, java.util.function.Supplier<AttachmentFileControl> attachmentFileControlSupplier, String sourceSubPath)
public static org.junit.rules.TestRule cleanDirectory(java.util.function.Supplier<File> directory)
public static TemporaryFileRule temporaryFile()
Copyright © 2002-2024 Atlassian. All Rights Reserved.