com.atlassian.jira.functest.rules
Class RemoveAttachmentsRule

java.lang.Object
  extended by com.atlassian.jira.functest.rules.RemoveAttachmentsRule
All Implemented Interfaces:
org.junit.rules.TestRule
Direct Known Subclasses:
CopyAttachmentsRule

public class RemoveAttachmentsRule
extends Object
implements org.junit.rules.TestRule

Clean up attachments directory before and after the test case.

Since:
v6.1

Field Summary
protected  Backdoor backdoor
           
protected  JIRAEnvironmentData environmentData
           
 
Constructor Summary
RemoveAttachmentsRule(Backdoor backdoor)
           
RemoveAttachmentsRule(FuncTestCase testCase)
           
 
Method Summary
 void after()
           
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
           
 void before()
           
protected  File getAttachmentPath()
           
protected  void removeAttachmentFilesFromJiraHome()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backdoor

protected final Backdoor backdoor

environmentData

protected final JIRAEnvironmentData environmentData
Constructor Detail

RemoveAttachmentsRule

public RemoveAttachmentsRule(FuncTestCase testCase)

RemoveAttachmentsRule

public RemoveAttachmentsRule(Backdoor backdoor)
Method Detail

before

public void before()

after

public void after()

removeAttachmentFilesFromJiraHome

protected final void removeAttachmentFilesFromJiraHome()

getAttachmentPath

protected File getAttachmentPath()

apply

public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
                                               org.junit.runner.Description description)
Specified by:
apply in interface org.junit.rules.TestRule


Copyright © 2002-2014 Atlassian. All Rights Reserved.