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 TypeMethodDescriptionaddProperty
(String key, String value) List<org.apache.maven.api.ProducedArtifact>
List<org.apache.maven.api.DependencyCoordinates>
List<org.apache.maven.api.DependencyCoordinates>
org.apache.maven.api.model.Model
getModel()
getName()
org.apache.maven.api.Packaging
Optional<org.apache.maven.api.Project>
boolean
boolean
setArtifactId
(String artifactId) setBasedir
(Path basedir) setDescription
(String desc) setGroupId
(String groupId) setMainArtifact
(org.apache.maven.api.ProducedArtifact mainArtifact) setMavenModel
(org.apache.maven.model.Model model) void
setModel
(org.apache.maven.api.model.Model model) setPackaging
(String packaging) setPomPath
(Path pomPath) setRootDirectory
(Path rootDirectory) setTopProject
(boolean topProject) 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, getLanguage, getMainArtifact, getPomArtifact
-
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
@Nonnull public org.apache.maven.api.Packaging getPackaging()- Specified by:
getPackaging
in interfaceorg.apache.maven.api.Project
-
getArtifacts
- Specified by:
getArtifacts
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
-
getParent
- Specified by:
getParent
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
-
setBasedir
-
setGroupId
-
setArtifactId
-
setVersion
-
setName
-
setDescription
-
setPackaging
-
setMainArtifact
-
setPomPath
-
setTopProject
-
setMavenModel
-
setRootDirectory
-
addProperty
-