org.apache.maven.plugin.testing.stubs

Class MavenProjectStub

public class MavenProjectStub extends MavenProject

very simple stub of maven project, going to take a lot of work to make it useful as a stub though
Constructor Summary
MavenProjectStub()
MavenProjectStub(Model model)
MavenProjectStub(MavenProject project)
Method Summary
voidaddAttachedArtifact(Artifact artifact)
voidaddCompileSourceRoot(String string)
voidaddContributor(Contributor contributor)
voidaddDeveloper(Developer developer)
voidaddLicense(License license)
voidaddMailingList(MailingList mailingList)
voidaddPlugin(Plugin plugin)
voidaddProjectReference(MavenProject mavenProject)
voidaddResource(Resource resource)
voidaddScriptSourceRoot(String string)
voidaddTestCompileSourceRoot(String string)
voidaddTestResource(Resource resource)
voidattachArtifact(String string, String string1, File file)
SetcreateArtifacts(ArtifactFactory artifactFactory, String string, ArtifactFilter artifactFilter)
ListgetActiveProfiles()
ArtifactgetArtifact()
StringgetArtifactId()
MapgetArtifactMap()
SetgetArtifacts()
ListgetAttachedArtifacts()
FilegetBasedir()
BuildgetBuild()
ListgetBuildExtensions()
ListgetBuildPlugins()
CiManagementgetCiManagement()
ListgetCollectedProjects()
ListgetCompileArtifacts()
ListgetCompileClasspathElements()
ListgetCompileDependencies()
ListgetCompileSourceRoots()
ListgetContributors()
StringgetDefaultGoal()
ListgetDependencies()
SetgetDependencyArtifacts()
DependencyManagementgetDependencyManagement()
StringgetDescription()
ListgetDevelopers()
DistributionManagementgetDistributionManagement()
ArtifactRepositorygetDistributionManagementArtifactRepository()
MavenProjectgetExecutionProject()
MapgetExtensionArtifactMap()
SetgetExtensionArtifacts()
FilegetFile()
ListgetFilters()
Xpp3DomgetGoalConfiguration(String string, String string1, String string2, String string3)
StringgetGroupId()
StringgetId()
StringgetInceptionYear()
IssueManagementgetIssueManagement()
ListgetLicenses()
ListgetMailingLists()
ModelgetModel()
StringgetModelVersion()
StringgetModulePathAdjustment(MavenProject mavenProject)
ListgetModules()
StringgetName()
OrganizationgetOrganization()
ModelgetOriginalModel()
StringgetPackaging()
MavenProjectgetParent()
ArtifactgetParentArtifact()
MapgetPluginArtifactMap()
ListgetPluginArtifactRepositories()
SetgetPluginArtifacts()
PluginManagementgetPluginManagement()
ListgetPluginRepositories()
PrerequisitesgetPrerequisites()
MapgetProjectReferences()
PropertiesgetProperties()
ListgetRemoteArtifactRepositories()
MapgetReportArtifactMap()
SetgetReportArtifacts()
Xpp3DomgetReportConfiguration(String string, String string1, String string2)
ReportinggetReporting()
ListgetReportPlugins()
ListgetRepositories()
ListgetResources()
ListgetRuntimeArtifacts()
ListgetRuntimeClasspathElements()
ListgetRuntimeDependencies()
ScmgetScm()
ListgetScriptSourceRoots()
ListgetSystemArtifacts()
ListgetSystemClasspathElements()
ListgetSystemDependencies()
ListgetTestArtifacts()
ListgetTestClasspathElements()
ListgetTestCompileSourceRoots()
ListgetTestDependencies()
ListgetTestResources()
StringgetUrl()
StringgetVersion()
booleanhasParent()
voidinjectPluginManagementInfo(Plugin plugin)
booleanisExecutionRoot()
ArtifactreplaceWithActiveArtifact(Artifact artifact)
voidsetActiveProfiles(List list)
voidsetArtifact(Artifact artifact)
voidsetArtifactId(String string)
voidsetArtifactMap(Map artifactMap)
voidsetArtifacts(Set set)
voidsetAttachedArtifacts(List attachedArtifacts)
voidsetBuild(Build build)
voidsetBuildOverlay(Build buildOverlay)
voidsetCiManagement(CiManagement ciManagement)
voidsetCollectedProjects(List list)
voidsetCompileArtifacts(List compileArtifacts)
voidsetCompileDependencies(List compileDependencies)
voidsetCompileSourceRoots(List compileSourceRoots)
voidsetContributors(List list)
voidsetDependencies(List list)
voidsetDependencyArtifacts(Set set)
voidsetDescription(String string)
voidsetDevelopers(List list)
voidsetDistributionManagement(DistributionManagement distributionManagement)
voidsetExecutionProject(MavenProject mavenProject)
voidsetExecutionRoot(boolean b)
voidsetExtensionArtifactMap(Map extensionArtifactMap)
voidsetExtensionArtifacts(Set set)
voidsetFile(File file)
voidsetGroupId(String string)
voidsetInceptionYear(String string)
voidsetIssueManagement(IssueManagement issueManagement)
voidsetLicenses(List list)
voidsetMailingLists(List list)
voidsetModel(Model model)
voidsetModelVersion(String string)
voidsetName(String string)
voidsetOrganization(Organization organization)
voidsetOriginalModel(Model model)
voidsetPackaging(String string)
voidsetParent(MavenProject mavenProject)
voidsetParentArtifact(Artifact artifact)
voidsetPluginArtifactMap(Map pluginArtifactMap)
voidsetPluginArtifactRepositories(List list)
voidsetPluginArtifacts(Set set)
voidsetProjectReferences(Map projectReferences)
voidsetReleaseArtifactRepository(ArtifactRepository artifactRepository)
voidsetRemoteArtifactRepositories(List list)
voidsetReportArtifactMap(Map reportArtifactMap)
voidsetReportArtifacts(Set set)
voidsetReporting(Reporting reporting)
voidsetRuntimeArtifacts(List runtimeArtifacts)
voidsetRuntimeClasspathElements(List runtimeClasspathElements)
voidsetRuntimeDependencies(List runtimeDependencies)
voidsetScm(Scm scm)
voidsetScriptSourceRoots(List scriptSourceRoots)
voidsetSnapshotArtifactRepository(ArtifactRepository artifactRepository)
voidsetSystemArtifacts(List systemArtifacts)
voidsetSystemClasspathElements(List systemClasspathElements)
voidsetSystemDependencies(List systemDependencies)
voidsetTestArtifacts(List testArtifacts)
voidsetTestClasspathElements(List testClasspathElements)
voidsetTestCompileSourceRoots(List testCompileSourceRoots)
voidsetTestDependencies(List testDependencies)
voidsetUrl(String string)
voidsetVersion(String string)
voidwriteModel(Writer writer)
voidwriteOriginalModel(Writer writer)

Constructor Detail

MavenProjectStub

public MavenProjectStub()

MavenProjectStub

public MavenProjectStub(Model model)

MavenProjectStub

public MavenProjectStub(MavenProject project)

Method Detail

addAttachedArtifact

public void addAttachedArtifact(Artifact artifact)

addCompileSourceRoot

public void addCompileSourceRoot(String string)

addContributor

public void addContributor(Contributor contributor)

addDeveloper

public void addDeveloper(Developer developer)

addLicense

public void addLicense(License license)

addMailingList

public void addMailingList(MailingList mailingList)

addPlugin

public void addPlugin(Plugin plugin)

addProjectReference

public void addProjectReference(MavenProject mavenProject)

addResource

public void addResource(Resource resource)

addScriptSourceRoot

public void addScriptSourceRoot(String string)

addTestCompileSourceRoot

public void addTestCompileSourceRoot(String string)

addTestResource

public void addTestResource(Resource resource)

attachArtifact

public void attachArtifact(String string, String string1, File file)

createArtifacts

public Set createArtifacts(ArtifactFactory artifactFactory, String string, ArtifactFilter artifactFilter)

getActiveProfiles

public List getActiveProfiles()

getArtifact

public Artifact getArtifact()

getArtifactId

public String getArtifactId()

getArtifactMap

public Map getArtifactMap()

getArtifacts

public Set getArtifacts()

getAttachedArtifacts

public List getAttachedArtifacts()

getBasedir

public File getBasedir()

getBuild

public Build getBuild()

getBuildExtensions

public List getBuildExtensions()

getBuildPlugins

public List getBuildPlugins()

getCiManagement

public CiManagement getCiManagement()

getCollectedProjects

public List getCollectedProjects()

getCompileArtifacts

public List getCompileArtifacts()

getCompileClasspathElements

public List getCompileClasspathElements()

getCompileDependencies

public List getCompileDependencies()

getCompileSourceRoots

public List getCompileSourceRoots()

getContributors

public List getContributors()

getDefaultGoal

public String getDefaultGoal()

getDependencies

public List getDependencies()

getDependencyArtifacts

public Set getDependencyArtifacts()

getDependencyManagement

public DependencyManagement getDependencyManagement()

getDescription

public String getDescription()

getDevelopers

public List getDevelopers()

getDistributionManagement

public DistributionManagement getDistributionManagement()

getDistributionManagementArtifactRepository

public ArtifactRepository getDistributionManagementArtifactRepository()

getExecutionProject

public MavenProject getExecutionProject()

getExtensionArtifactMap

public Map getExtensionArtifactMap()

getExtensionArtifacts

public Set getExtensionArtifacts()

getFile

public File getFile()

getFilters

public List getFilters()

getGoalConfiguration

public Xpp3Dom getGoalConfiguration(String string, String string1, String string2, String string3)

getGroupId

public String getGroupId()

getId

public String getId()

getInceptionYear

public String getInceptionYear()

getIssueManagement

public IssueManagement getIssueManagement()

getLicenses

public List getLicenses()

getMailingLists

public List getMailingLists()

getModel

public Model getModel()

getModelVersion

public String getModelVersion()

getModulePathAdjustment

public String getModulePathAdjustment(MavenProject mavenProject)

getModules

public List getModules()

getName

public String getName()

getOrganization

public Organization getOrganization()

getOriginalModel

public Model getOriginalModel()

getPackaging

public String getPackaging()

getParent

public MavenProject getParent()

getParentArtifact

public Artifact getParentArtifact()

getPluginArtifactMap

public Map getPluginArtifactMap()

getPluginArtifactRepositories

public List getPluginArtifactRepositories()

getPluginArtifacts

public Set getPluginArtifacts()

getPluginManagement

public PluginManagement getPluginManagement()

getPluginRepositories

public List getPluginRepositories()

getPrerequisites

public Prerequisites getPrerequisites()

getProjectReferences

public Map getProjectReferences()

getProperties

public Properties getProperties()

getRemoteArtifactRepositories

public List getRemoteArtifactRepositories()

getReportArtifactMap

public Map getReportArtifactMap()

getReportArtifacts

public Set getReportArtifacts()

getReportConfiguration

public Xpp3Dom getReportConfiguration(String string, String string1, String string2)

getReporting

public Reporting getReporting()

getReportPlugins

public List getReportPlugins()

getRepositories

public List getRepositories()

getResources

public List getResources()

getRuntimeArtifacts

public List getRuntimeArtifacts()

getRuntimeClasspathElements

public List getRuntimeClasspathElements()

getRuntimeDependencies

public List getRuntimeDependencies()

getScm

public Scm getScm()

getScriptSourceRoots

public List getScriptSourceRoots()

getSystemArtifacts

public List getSystemArtifacts()

getSystemClasspathElements

public List getSystemClasspathElements()

getSystemDependencies

public List getSystemDependencies()

getTestArtifacts

public List getTestArtifacts()

getTestClasspathElements

public List getTestClasspathElements()

getTestCompileSourceRoots

public List getTestCompileSourceRoots()

getTestDependencies

public List getTestDependencies()

getTestResources

public List getTestResources()

getUrl

public String getUrl()

getVersion

public String getVersion()

hasParent

public boolean hasParent()

injectPluginManagementInfo

public void injectPluginManagementInfo(Plugin plugin)

isExecutionRoot

public boolean isExecutionRoot()

replaceWithActiveArtifact

public Artifact replaceWithActiveArtifact(Artifact artifact)

setActiveProfiles

public void setActiveProfiles(List list)

setArtifact

public void setArtifact(Artifact artifact)

setArtifactId

public void setArtifactId(String string)

setArtifactMap

public void setArtifactMap(Map artifactMap)

setArtifacts

public void setArtifacts(Set set)

setAttachedArtifacts

public void setAttachedArtifacts(List attachedArtifacts)

setBuild

public void setBuild(Build build)

setBuildOverlay

public void setBuildOverlay(Build buildOverlay)

setCiManagement

public void setCiManagement(CiManagement ciManagement)

setCollectedProjects

public void setCollectedProjects(List list)

setCompileArtifacts

public void setCompileArtifacts(List compileArtifacts)

setCompileDependencies

public void setCompileDependencies(List compileDependencies)

setCompileSourceRoots

public void setCompileSourceRoots(List compileSourceRoots)

setContributors

public void setContributors(List list)

setDependencies

public void setDependencies(List list)

setDependencyArtifacts

public void setDependencyArtifacts(Set set)

setDescription

public void setDescription(String string)

setDevelopers

public void setDevelopers(List list)

setDistributionManagement

public void setDistributionManagement(DistributionManagement distributionManagement)

setExecutionProject

public void setExecutionProject(MavenProject mavenProject)

setExecutionRoot

public void setExecutionRoot(boolean b)

setExtensionArtifactMap

public void setExtensionArtifactMap(Map extensionArtifactMap)

setExtensionArtifacts

public void setExtensionArtifacts(Set set)

setFile

public void setFile(File file)

setGroupId

public void setGroupId(String string)

setInceptionYear

public void setInceptionYear(String string)

setIssueManagement

public void setIssueManagement(IssueManagement issueManagement)

setLicenses

public void setLicenses(List list)

setMailingLists

public void setMailingLists(List list)

setModel

public void setModel(Model model)

setModelVersion

public void setModelVersion(String string)

setName

public void setName(String string)

setOrganization

public void setOrganization(Organization organization)

setOriginalModel

public void setOriginalModel(Model model)

setPackaging

public void setPackaging(String string)

setParent

public void setParent(MavenProject mavenProject)

setParentArtifact

public void setParentArtifact(Artifact artifact)

setPluginArtifactMap

public void setPluginArtifactMap(Map pluginArtifactMap)

setPluginArtifactRepositories

public void setPluginArtifactRepositories(List list)

setPluginArtifacts

public void setPluginArtifacts(Set set)

setProjectReferences

public void setProjectReferences(Map projectReferences)

setReleaseArtifactRepository

public void setReleaseArtifactRepository(ArtifactRepository artifactRepository)

setRemoteArtifactRepositories

public void setRemoteArtifactRepositories(List list)

setReportArtifactMap

public void setReportArtifactMap(Map reportArtifactMap)

setReportArtifacts

public void setReportArtifacts(Set set)

setReporting

public void setReporting(Reporting reporting)

setRuntimeArtifacts

public void setRuntimeArtifacts(List runtimeArtifacts)

setRuntimeClasspathElements

public void setRuntimeClasspathElements(List runtimeClasspathElements)

setRuntimeDependencies

public void setRuntimeDependencies(List runtimeDependencies)

setScm

public void setScm(Scm scm)

setScriptSourceRoots

public void setScriptSourceRoots(List scriptSourceRoots)

setSnapshotArtifactRepository

public void setSnapshotArtifactRepository(ArtifactRepository artifactRepository)

setSystemArtifacts

public void setSystemArtifacts(List systemArtifacts)

setSystemClasspathElements

public void setSystemClasspathElements(List systemClasspathElements)

setSystemDependencies

public void setSystemDependencies(List systemDependencies)

setTestArtifacts

public void setTestArtifacts(List testArtifacts)

setTestClasspathElements

public void setTestClasspathElements(List testClasspathElements)

setTestCompileSourceRoots

public void setTestCompileSourceRoots(List testCompileSourceRoots)

setTestDependencies

public void setTestDependencies(List testDependencies)

setUrl

public void setUrl(String string)

setVersion

public void setVersion(String string)

writeModel

public void writeModel(Writer writer)

writeOriginalModel

public void writeOriginalModel(Writer writer)
Copyright © {inceptionYear}-2008 null. All Rights Reserved.