com.atlassian.jira.functest.framework.navigation.issue
Class FileAttachmentsList.FileAttachmentItem

java.lang.Object
  extended by com.atlassian.jira.functest.framework.navigation.issue.FileAttachmentsList.FileAttachmentItem
Enclosing interface:
FileAttachmentsList

public static class FileAttachmentsList.FileAttachmentItem
extends Object

Represents a file attachment in the file attachments list on the view issue page.


Method Summary
 boolean equals(Object obj)
           
 String getAuthor()
           
 String getDate()
           
 long getId()
           
 String getName()
           
 String getSize()
           
 List<FileAttachmentsList.ZipFileAttachmentEntry> getZipEntries()
           
 int hashCode()
           
 boolean isZip()
          Determines whether this file attachment is a zip file.
 FileAttachmentsList.FileAttachmentItem sortZipEntries(com.google.common.collect.Ordering<FileAttachmentsList.ZipFileAttachmentEntry> order)
          In some tests we don't care about the order of the entries.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public long getId()

getName

public String getName()

getSize

public String getSize()

getAuthor

public String getAuthor()

getDate

public String getDate()

getZipEntries

public List<FileAttachmentsList.ZipFileAttachmentEntry> getZipEntries()

sortZipEntries

public FileAttachmentsList.FileAttachmentItem sortZipEntries(com.google.common.collect.Ordering<FileAttachmentsList.ZipFileAttachmentEntry> order)
In some tests we don't care about the order of the entries. This method provides a way to predictively sort zip entries in this attachment item, so that we can make predictive comparisons regardless of the initial order of the entries.

Parameters:
order - ordering of the entries
Returns:
this attachment item with changed state d'oh!

isZip

public boolean isZip()
Determines whether this file attachment is a zip file.

Returns:
true if this file attachment is a zip file; otherwise, false.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2013 Atlassian. All Rights Reserved.