Class MockIssueType

java.lang.Object
com.atlassian.jira.issue.MockIssueConstant
com.atlassian.jira.issue.issuetype.MockIssueType
All Implemented Interfaces:
IssueConstant, IssueType, Named, NamedWithDescription, Comparable

public class MockIssueType extends MockIssueConstant implements IssueType
Since:
v3.13
  • Constructor Details

    • MockIssueType

      public MockIssueType(String id, String name)
      Constructs a non subtask IssueType with the given id and name.
      Parameters:
      id - the id.
      name - the name.
    • MockIssueType

      public MockIssueType(long id, String name)
      Constructs a non subtask IssueType with the given id and name.
      Parameters:
      id - the id.
      name - the name.
    • MockIssueType

      public MockIssueType(String id, String name, boolean subTask)
    • MockIssueType

      public MockIssueType(String id, String name, String description)
    • MockIssueType

      public MockIssueType(String id, String name, String description, boolean subTask)
    • MockIssueType

      public MockIssueType(String id, String name, boolean subTask, Avatar avatar)
  • Method Details

    • isSubTask

      public boolean isSubTask()
      Specified by:
      isSubTask in interface IssueType
    • getAvatar

      public Avatar getAvatar()
      Description copied from interface: IssueType
      Get avatar assigned to this IssueType. Link to avatar will be automatically assigned to property iconUrl.

      When all issue constants will have avatars it should be moved into IssueConstant.

      Specified by:
      getAvatar in interface IssueType
      Returns:
      avatar or null if this item has no avatar assigned.