public class

MockProjectFactory

extends Object
implements ProjectFactory
java.lang.Object
   ↳ com.atlassian.jira.project.MockProjectFactory

Summary

Public Constructors
MockProjectFactory()
Public Methods
Project getProject(GenericValue projectGV)
Returns a project object that is backed by the given generic value.
@Nonnull List<Project> getProjects(Collection<GenericValue> projectGVs)
Returns the collection of Project objects that are backed by the GenericValue objects in the given collection.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.project.ProjectFactory

Public Constructors

public MockProjectFactory ()

Public Methods

public Project getProject (GenericValue projectGV)

Returns a project object that is backed by the given generic value.

Parameters
projectGV project generic value
Returns
  • existing project or null if project does not exist

@Nonnull public List<Project> getProjects (Collection<GenericValue> projectGVs)

Returns the collection of Project objects that are backed by the GenericValue objects in the given collection.

Parameters
projectGVs GenericValues of projects to return.
Returns
  • the Collection of existing projects, possibly empty, never null.