Class ProjectStub
java.lang.Object
org.apache.maven.api.plugin.testing.stubs.ProjectStub
- All Implemented Interfaces:
org.apache.maven.api.Project
- Since:
- 1.0-beta-1
- Author:
- Olivier Lamy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.api.Artifact
List<org.apache.maven.api.DependencyCoordinate>
List<org.apache.maven.api.DependencyCoordinate>
org.apache.maven.api.model.Model
getModel()
getName()
Optional<org.apache.maven.api.Project>
List<org.apache.maven.api.RemoteRepository>
List<org.apache.maven.api.RemoteRepository>
boolean
boolean
boolean
void
setArtifact
(org.apache.maven.api.Artifact artifact) void
setArtifactId
(String artifactId) void
setBasedir
(Path basedir) void
setGroupId
(String groupId) void
setMavenModel
(org.apache.maven.model.Model model) void
setModel
(org.apache.maven.api.model.Model model) void
void
setPackaging
(String packaging) void
setPomPath
(File pomPath) void
setRootDirectory
(Path rootDirectory) void
setTopProject
(boolean topProject) void
setVersion
(String version) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.Project
getBuild, getId
-
Constructor Details
-
ProjectStub
public ProjectStub()
-
-
Method Details
-
setModel
public void setModel(org.apache.maven.api.model.Model model) -
getGroupId
- Specified by:
getGroupId
in interfaceorg.apache.maven.api.Project
-
getArtifactId
- Specified by:
getArtifactId
in interfaceorg.apache.maven.api.Project
-
getVersion
- Specified by:
getVersion
in interfaceorg.apache.maven.api.Project
-
getName
-
getPackaging
- Specified by:
getPackaging
in interfaceorg.apache.maven.api.Project
-
getArtifact
@Nonnull public org.apache.maven.api.Artifact getArtifact()- Specified by:
getArtifact
in interfaceorg.apache.maven.api.Project
-
getModel
@Nonnull public org.apache.maven.api.model.Model getModel()- Specified by:
getModel
in interfaceorg.apache.maven.api.Project
-
getPomPath
- Specified by:
getPomPath
in interfaceorg.apache.maven.api.Project
-
getDependencies
- Specified by:
getDependencies
in interfaceorg.apache.maven.api.Project
-
getManagedDependencies
- Specified by:
getManagedDependencies
in interfaceorg.apache.maven.api.Project
-
getBasedir
- Specified by:
getBasedir
in interfaceorg.apache.maven.api.Project
-
setBasedir
-
isExecutionRoot
public boolean isExecutionRoot()- Specified by:
isExecutionRoot
in interfaceorg.apache.maven.api.Project
-
getParent
- Specified by:
getParent
in interfaceorg.apache.maven.api.Project
-
getRemoteProjectRepositories
- Specified by:
getRemoteProjectRepositories
in interfaceorg.apache.maven.api.Project
-
getRemotePluginRepositories
- Specified by:
getRemotePluginRepositories
in interfaceorg.apache.maven.api.Project
-
isTopProject
public boolean isTopProject()- Specified by:
isTopProject
in interfaceorg.apache.maven.api.Project
-
isRootProject
public boolean isRootProject()- Specified by:
isRootProject
in interfaceorg.apache.maven.api.Project
-
getRootDirectory
- Specified by:
getRootDirectory
in interfaceorg.apache.maven.api.Project
-
setGroupId
-
setArtifactId
-
setVersion
-
setName
-
setPackaging
-
setArtifact
public void setArtifact(org.apache.maven.api.Artifact artifact) -
setPomPath
-
setTopProject
public void setTopProject(boolean topProject) -
setMavenModel
public void setMavenModel(org.apache.maven.model.Model model) -
setRootDirectory
-