Class ProjectStub

java.lang.Object
org.apache.maven.api.plugin.testing.stubs.ProjectStub
All Implemented Interfaces:
org.apache.maven.api.Project

public class ProjectStub extends Object implements org.apache.maven.api.Project
Since:
1.0-beta-1
Author:
Olivier Lamy
  • Constructor Details

    • ProjectStub

      public ProjectStub()
  • Method Details

    • setModel

      public void setModel(org.apache.maven.api.model.Model model)
    • getGroupId

      @Nonnull public String getGroupId()
      Specified by:
      getGroupId in interface org.apache.maven.api.Project
    • getArtifactId

      @Nonnull public String getArtifactId()
      Specified by:
      getArtifactId in interface org.apache.maven.api.Project
    • getVersion

      @Nonnull public String getVersion()
      Specified by:
      getVersion in interface org.apache.maven.api.Project
    • getName

      public String getName()
    • getPackaging

      @Nonnull public org.apache.maven.api.Packaging getPackaging()
      Specified by:
      getPackaging in interface org.apache.maven.api.Project
    • getArtifacts

      public List<org.apache.maven.api.ProducedArtifact> getArtifacts()
      Specified by:
      getArtifacts in interface org.apache.maven.api.Project
    • getModel

      @Nonnull public org.apache.maven.api.model.Model getModel()
      Specified by:
      getModel in interface org.apache.maven.api.Project
    • getPomPath

      @Nonnull public Path getPomPath()
      Specified by:
      getPomPath in interface org.apache.maven.api.Project
    • getDependencies

      @Nonnull public List<org.apache.maven.api.DependencyCoordinates> getDependencies()
      Specified by:
      getDependencies in interface org.apache.maven.api.Project
    • getManagedDependencies

      @Nonnull public List<org.apache.maven.api.DependencyCoordinates> getManagedDependencies()
      Specified by:
      getManagedDependencies in interface org.apache.maven.api.Project
    • getBasedir

      public Path getBasedir()
      Specified by:
      getBasedir in interface org.apache.maven.api.Project
    • getParent

      public Optional<org.apache.maven.api.Project> getParent()
      Specified by:
      getParent in interface org.apache.maven.api.Project
    • isTopProject

      public boolean isTopProject()
      Specified by:
      isTopProject in interface org.apache.maven.api.Project
    • isRootProject

      public boolean isRootProject()
      Specified by:
      isRootProject in interface org.apache.maven.api.Project
    • getRootDirectory

      public Path getRootDirectory()
      Specified by:
      getRootDirectory in interface org.apache.maven.api.Project
    • setBasedir

      public ProjectStub setBasedir(Path basedir)
    • setGroupId

      public ProjectStub setGroupId(String groupId)
    • setArtifactId

      public ProjectStub setArtifactId(String artifactId)
    • setVersion

      public ProjectStub setVersion(String version)
    • setName

      public ProjectStub setName(String name)
    • setDescription

      public ProjectStub setDescription(String desc)
    • setPackaging

      public ProjectStub setPackaging(String packaging)
    • setMainArtifact

      public ProjectStub setMainArtifact(org.apache.maven.api.ProducedArtifact mainArtifact)
    • setPomPath

      public ProjectStub setPomPath(Path pomPath)
    • setTopProject

      public ProjectStub setTopProject(boolean topProject)
    • setMavenModel

      public ProjectStub setMavenModel(org.apache.maven.model.Model model)
    • setRootDirectory

      public ProjectStub setRootDirectory(Path rootDirectory)
    • addProperty

      public ProjectStub addProperty(String key, String value)