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(com.atlassian.jira.testkit.client.AttachmentsControl attachmentsControl) |
static org.junit.rules.TestRule |
cleanDirectory(File directory) |
static org.junit.rules.TestRule |
copyAttachments(JIRAEnvironmentData environmentData,
String sourceSubPath,
com.atlassian.jira.testkit.client.AttachmentsControl attachmentsControl) |
static org.junit.rules.TestRule |
copyDirectory(File sourceDirectory,
File targetDirectory) |
static org.junit.rules.TestRule |
enableAttachments(com.atlassian.jira.testkit.client.AttachmentsControl attachmentsControl) |
static org.junit.rules.TestRule |
prepareAttachments(JIRAEnvironmentData environmentData,
String sourceSubPath)
Prepares attachment files, but not database entries.
|
public static org.junit.rules.TestRule prepareAttachments(JIRAEnvironmentData environmentData, String sourceSubPath)
environmentData
- Environment, which specifies attachment source and target directorysourceSubPath
- 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(com.atlassian.jira.testkit.client.AttachmentsControl attachmentsControl)
public static org.junit.rules.TestRule cleanAttachments(com.atlassian.jira.testkit.client.AttachmentsControl attachmentsControl)
public static org.junit.rules.TestRule copyAttachments(JIRAEnvironmentData environmentData, String sourceSubPath, com.atlassian.jira.testkit.client.AttachmentsControl attachmentsControl)
public static org.junit.rules.TestRule cleanDirectory(File directory)
Copyright © 2002-2015 Atlassian. All Rights Reserved.