Class Rules

java.lang.Object
com.atlassian.jira.functest.rule.Rules

public class Rules extends Object
Creates TestRule instances.
Since:
v6.4
  • 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 directory
      backdoorSupplier - Supplier for backdoor
      sourceSubPath - Path relative to environmentData.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

      public static org.junit.rules.TestRule cleanDirectory(Supplier<File> directory)
    • temporaryFile

      public static TemporaryFileRule temporaryFile()