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<com.atlassian.jira.testkit.client.AttachmentsControl> attachmentsControlSupplier) |
static org.junit.rules.TestRule |
cleanDirectory(File directory) |
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<com.atlassian.jira.testkit.client.AttachmentsControl> attachmentsControlSupplier,
String sourceSubPath) |
static org.junit.rules.TestRule |
copyDirectory(File sourceDirectory,
File targetDirectory) |
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.
|
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<com.atlassian.jira.testkit.client.AttachmentsControl> attachmentsControlSupplier)
public static org.junit.rules.TestRule copyAttachments(java.util.function.Supplier<JIRAEnvironmentData> environmentDataSupplier, java.util.function.Supplier<com.atlassian.jira.testkit.client.AttachmentsControl> attachmentsControlSupplier, String sourceSubPath)
public static org.junit.rules.TestRule cleanDirectory(File directory)
public static org.junit.rules.TestRule cleanDirectory(java.util.function.Supplier<File> directory)
Copyright © 2002-2017 Atlassian. All Rights Reserved.