Class MockVersion

java.lang.Object
com.atlassian.jira.mock.project.MockVersion
All Implemented Interfaces:
WithId, ProjectConstant, Version, Named, NamedWithDescription

public class MockVersion extends Object implements Version
  • Constructor Details

    • MockVersion

      public MockVersion()
    • MockVersion

      public MockVersion(org.ofbiz.core.entity.GenericValue genericValue)
    • MockVersion

      public MockVersion(long id, String name)
    • MockVersion

      public MockVersion(long id, String name, Project project)
    • MockVersion

      public MockVersion(long id, String name, Project project, Long sequence)
  • Method Details

    • named

      public static Version named(String versionName)
    • getProject

      public Project getProject()
      Description copied from interface: Version
      Returns project this version relates to.
      Specified by:
      getProject in interface Version
      Returns:
      project this version relates to.
    • getProjectId

      public Long getProjectId()
      Description copied from interface: Version
      Returns the ID of the project that this version belongs to.
      Specified by:
      getProjectId in interface ProjectConstant
      Specified by:
      getProjectId in interface Version
      Returns:
      the ID of the project that this version belongs to.
    • getProjectObject

      public Project getProjectObject()
      Description copied from interface: Version
      Returns project this version relates to.

      Same as getProject() and exists for legacy reasons.

      Specified by:
      getProjectObject in interface Version
      Returns:
      project domain object
    • setProjectObject

      public MockVersion setProjectObject(Project project)
    • getId

      public Long getId()
      Specified by:
      getId in interface ProjectConstant
      Specified by:
      getId in interface Version
      Specified by:
      getId in interface WithId
      Returns:
      the unique id of the entity.
    • setId

      public void setId(Long id)
    • getName

      public String getName()
      Specified by:
      getName in interface Named
      Specified by:
      getName in interface ProjectConstant
      Specified by:
      getName in interface Version
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface NamedWithDescription
      Specified by:
      getDescription in interface ProjectConstant
      Specified by:
      getDescription in interface Version
    • setDescription

      public void setDescription(String description)
    • getSequence

      public Long getSequence()
      Specified by:
      getSequence in interface Version
    • setSequence

      public void setSequence(Long sequence)
    • isArchived

      public boolean isArchived()
      Specified by:
      isArchived in interface Version
    • setArchived

      public void setArchived(boolean archived)
    • isReleased

      public boolean isReleased()
      Specified by:
      isReleased in interface Version
    • setReleased

      public void setReleased(boolean released)
    • getStartDate

      public Date getStartDate()
      Description copied from interface: Version
      Returns the start date of the version
      Specified by:
      getStartDate in interface Version
      Returns:
      The start date of the version
    • setStartDate

      public void setStartDate(Date startDate)
    • clone

      public Version clone()
      Overrides:
      clone in class Object
    • getReleaseDate

      public Date getReleaseDate()
      Specified by:
      getReleaseDate in interface Version
    • setReleaseDate

      public void setReleaseDate(Date releasedate)
    • getString

      public String getString(String name)
    • getTimestamp

      public Timestamp getTimestamp(String name)
    • getLong

      public Long getLong(String name)
    • getGenericValue

      public org.ofbiz.core.entity.GenericValue getGenericValue()
    • store

      public void store()
    • toString

      public String toString()
      Overrides:
      toString in class Object