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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
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/")
|