o fixed checkstyle

o updated some javadoc

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@629649 13f79535-47bb-0310-9956-ffa450edef68
master
Vincent Siveton 2008-02-20 23:07:00 +00:00
parent a25b131d73
commit e8d86e505c
7 changed files with 105 additions and 232 deletions

View File

@ -188,7 +188,8 @@ public abstract class AbstractMojoTestCase
if ( pluginConfiguration != null ) if ( pluginConfiguration != null )
{ {
/* requires v10 of plexus container for lookup on expression evaluator /* requires v10 of plexus container for lookup on expression evaluator
ExpressionEvaluator evaluator = (ExpressionEvaluator) getContainer().lookup( ExpressionEvaluator.ROLE, "stub-evaluator" ); ExpressionEvaluator evaluator = (ExpressionEvaluator) getContainer().lookup( ExpressionEvaluator.ROLE,
"stub-evaluator" );
*/ */
ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub(); ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub();

View File

@ -51,15 +51,15 @@ import org.codehaus.plexus.util.StringUtils;
*/ */
public class ArtifactStubFactory public class ArtifactStubFactory
{ {
File workingDir; private File workingDir;
boolean createFiles; private boolean createFiles;
File srcFile; private File srcFile;
boolean createUnpackableFile; private boolean createUnpackableFile;
ArchiverManager archiverManager; private ArchiverManager archiverManager;
/** /**
* Default constructor. This should be used only if real files aren't needed...just the artifact objects * Default constructor. This should be used only if real files aren't needed...just the artifact objects
@ -167,7 +167,7 @@ public class ArtifactStubFactory
if ( createFiles ) if ( createFiles )
{ {
setArtifactFile( artifact,this.workingDir,this.srcFile,this.createUnpackableFile ); setArtifactFile( artifact, this.workingDir, this.srcFile, this.createUnpackableFile );
} }
return artifact; return artifact;
} }
@ -282,10 +282,10 @@ public class ArtifactStubFactory
* @param artifact * @param artifact
* @return * @return
*/ */
static public String getUnpackableFileName( Artifact artifact ) public static String getUnpackableFileName( Artifact artifact )
{ {
return "" + artifact.getGroupId() + "-" + artifact.getArtifactId() + "-" + artifact.getVersion() + "-" + return "" + artifact.getGroupId() + "-" + artifact.getArtifactId() + "-" + artifact.getVersion() + "-"
artifact.getClassifier() + "-" + artifact.getType() + ".txt"; + artifact.getClassifier() + "-" + artifact.getType() + ".txt";
} }
/** /**
@ -442,7 +442,8 @@ public class ArtifactStubFactory
/** /**
* @return a set of <code>DefaultArtifact</code>, i.e.: * @return a set of <code>DefaultArtifact</code>, i.e.:
* <code>one:group-one:jar:a:1.0, three:group-three:jar:a:1.0, four:group-four:jar:a:1.0, two:group-two:jar:a:1.0</code> * <code>one:group-one:jar:a:1.0, three:group-three:jar:a:1.0, four:group-four:jar:a:1.0,
* two:group-two:jar:a:1.0</code>
* @throws IOException if any * @throws IOException if any
*/ */
public Set getGroupIdArtifacts() public Set getGroupIdArtifacts()
@ -577,9 +578,8 @@ public class ArtifactStubFactory
classifierString = "-" + artifact.getClassifier(); classifierString = "-" + artifact.getClassifier();
} }
destFileName = destFileName = artifact.getArtifactId() + versionString + classifierString + "."
artifact.getArtifactId() + versionString + classifierString + "." + + artifact.getArtifactHandler().getExtension();
artifact.getArtifactHandler().getExtension();
} }
return destFileName; return destFileName;
} }

View File

@ -341,8 +341,8 @@ public class ArtifactStub
*/ */
public boolean isSnapshot() public boolean isSnapshot()
{ {
return Artifact.VERSION_FILE_PATTERN.matcher( version ).matches() || return Artifact.VERSION_FILE_PATTERN.matcher( version ).matches()
version.endsWith( Artifact.SNAPSHOT_VERSION ); || version.endsWith( Artifact.SNAPSHOT_VERSION );
} }
/** /**

View File

@ -62,7 +62,7 @@ public class DefaultArtifactHandlerStub
} }
/** /**
* @param t the artifact handler type * @param type the artifact handler type
*/ */
public DefaultArtifactHandlerStub( String type ) public DefaultArtifactHandlerStub( String type )
{ {
@ -137,8 +137,7 @@ public class DefaultArtifactHandlerStub
} }
/** /**
* @param theAddedToClasspath * @param theAddedToClasspath The addedToClasspath to set.
* The addedToClasspath to set.
*/ */
public void setAddedToClasspath( boolean theAddedToClasspath ) public void setAddedToClasspath( boolean theAddedToClasspath )
{ {
@ -146,8 +145,7 @@ public class DefaultArtifactHandlerStub
} }
/** /**
* @param theClassifier * @param theClassifier The classifier to set.
* The classifier to set.
*/ */
public void setClassifier( String theClassifier ) public void setClassifier( String theClassifier )
{ {
@ -155,8 +153,7 @@ public class DefaultArtifactHandlerStub
} }
/** /**
* @param theDirectory * @param theDirectory The directory to set.
* The directory to set.
*/ */
public void setDirectory( String theDirectory ) public void setDirectory( String theDirectory )
{ {
@ -164,8 +161,7 @@ public class DefaultArtifactHandlerStub
} }
/** /**
* @param theExtension * @param theExtension The extension to set.
* The extension to set.
*/ */
public void setExtension( String theExtension ) public void setExtension( String theExtension )
{ {
@ -173,8 +169,7 @@ public class DefaultArtifactHandlerStub
} }
/** /**
* @param theIncludesDependencies * @param theIncludesDependencies The includesDependencies to set.
* The includesDependencies to set.
*/ */
public void setIncludesDependencies( boolean theIncludesDependencies ) public void setIncludesDependencies( boolean theIncludesDependencies )
{ {
@ -182,8 +177,7 @@ public class DefaultArtifactHandlerStub
} }
/** /**
* @param theLanguage * @param theLanguage The language to set.
* The language to set.
*/ */
public void setLanguage( String theLanguage ) public void setLanguage( String theLanguage )
{ {
@ -191,8 +185,7 @@ public class DefaultArtifactHandlerStub
} }
/** /**
* @param thePackaging * @param thePackaging The packaging to set.
* The packaging to set.
*/ */
public void setPackaging( String thePackaging ) public void setPackaging( String thePackaging )
{ {
@ -200,8 +193,7 @@ public class DefaultArtifactHandlerStub
} }
/** /**
* @param theType * @param theType The type to set.
* The type to set.
*/ */
public void setType( String theType ) public void setType( String theType )
{ {

View File

@ -161,21 +161,25 @@ public class MavenProjectStub
*/ */
public MavenProjectStub() public MavenProjectStub()
{ {
this( (Model) new Model() ); this( new Model() );
} }
// kinda dangerous... /**
* @param model the given model
*/
public MavenProjectStub( Model model ) public MavenProjectStub( Model model )
{ {
// super(model);
super( (Model) null ); super( (Model) null );
this.model = model; this.model = model;
} }
// kinda dangerous... /**
* No project model is associated
*
* @param project the given project
*/
public MavenProjectStub( MavenProject project ) public MavenProjectStub( MavenProject project )
{ {
//super(project);
super( (Model) null ); super( (Model) null );
} }
@ -190,41 +194,31 @@ public class MavenProjectStub
return ""; return "";
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getArtifact()
*/
public Artifact getArtifact() public Artifact getArtifact()
{ {
return artifact; return artifact;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setArtifact(org.apache.maven.artifact.Artifact)
*/
public void setArtifact( Artifact artifact ) public void setArtifact( Artifact artifact )
{ {
this.artifact = artifact; this.artifact = artifact;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getModel()
*/
public Model getModel() public Model getModel()
{ {
return model; return model;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getParent()
*/
public MavenProject getParent() public MavenProject getParent()
{ {
return parent; return parent;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setParent(org.apache.maven.project.MavenProject)
*/
public void setParent( MavenProject mavenProject ) public void setParent( MavenProject mavenProject )
{ {
this.parent = mavenProject; this.parent = mavenProject;
@ -250,9 +244,7 @@ public class MavenProjectStub
return Collections.EMPTY_LIST; return Collections.EMPTY_LIST;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#hasParent()
*/
public boolean hasParent() public boolean hasParent()
{ {
if ( parent != null ) if ( parent != null )
@ -263,25 +255,19 @@ public class MavenProjectStub
return false; return false;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getFile()
*/
public File getFile() public File getFile()
{ {
return file; return file;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setFile(java.io.File)
*/
public void setFile( File file ) public void setFile( File file )
{ {
this.file = file; this.file = file;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getBasedir()
*/
public File getBasedir() public File getBasedir()
{ {
return new File( PlexusTestCase.getBasedir() ); return new File( PlexusTestCase.getBasedir() );
@ -317,9 +303,7 @@ public class MavenProjectStub
return null; return null;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#addCompileSourceRoot(java.lang.String)
*/
public void addCompileSourceRoot( String string ) public void addCompileSourceRoot( String string )
{ {
if ( compileSourceRoots == null ) if ( compileSourceRoots == null )
@ -332,9 +316,7 @@ public class MavenProjectStub
} }
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#addScriptSourceRoot(java.lang.String)
*/
public void addScriptSourceRoot( String string ) public void addScriptSourceRoot( String string )
{ {
if ( scriptSourceRoots == null ) if ( scriptSourceRoots == null )
@ -347,9 +329,7 @@ public class MavenProjectStub
} }
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#addTestCompileSourceRoot(java.lang.String)
*/
public void addTestCompileSourceRoot( String string ) public void addTestCompileSourceRoot( String string )
{ {
if ( testCompileSourceRoots == null ) if ( testCompileSourceRoots == null )
@ -362,33 +342,25 @@ public class MavenProjectStub
} }
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getCompileSourceRoots()
*/
public List getCompileSourceRoots() public List getCompileSourceRoots()
{ {
return compileSourceRoots; return compileSourceRoots;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getScriptSourceRoots()
*/
public List getScriptSourceRoots() public List getScriptSourceRoots()
{ {
return scriptSourceRoots; return scriptSourceRoots;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getTestCompileSourceRoots()
*/
public List getTestCompileSourceRoots() public List getTestCompileSourceRoots()
{ {
return testCompileSourceRoots; return testCompileSourceRoots;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getCompileClasspathElements()
*/
public List getCompileClasspathElements() public List getCompileClasspathElements()
throws DependencyResolutionRequiredException throws DependencyResolutionRequiredException
{ {
@ -403,84 +375,64 @@ public class MavenProjectStub
this.compileArtifacts = compileArtifacts; this.compileArtifacts = compileArtifacts;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getCompileArtifacts()
*/
public List getCompileArtifacts() public List getCompileArtifacts()
{ {
return compileArtifacts; return compileArtifacts;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getCompileDependencies()
*/
public List getCompileDependencies() public List getCompileDependencies()
{ {
return compileDependencies; return compileDependencies;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getTestClasspathElements()
*/
public List getTestClasspathElements() public List getTestClasspathElements()
throws DependencyResolutionRequiredException throws DependencyResolutionRequiredException
{ {
return testClasspathElements; return testClasspathElements;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getTestArtifacts()
*/
public List getTestArtifacts() public List getTestArtifacts()
{ {
return testArtifacts; return testArtifacts;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getTestDependencies()
*/
public List getTestDependencies() public List getTestDependencies()
{ {
return testDependencies; return testDependencies;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getRuntimeClasspathElements()
*/
public List getRuntimeClasspathElements() public List getRuntimeClasspathElements()
throws DependencyResolutionRequiredException throws DependencyResolutionRequiredException
{ {
return runtimeClasspathElements; return runtimeClasspathElements;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getRuntimeArtifacts()
*/
public List getRuntimeArtifacts() public List getRuntimeArtifacts()
{ {
return runtimeArtifacts; return runtimeArtifacts;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getRuntimeDependencies()
*/
public List getRuntimeDependencies() public List getRuntimeDependencies()
{ {
return runtimeDependencies; return runtimeDependencies;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getSystemClasspathElements()
*/
public List getSystemClasspathElements() public List getSystemClasspathElements()
throws DependencyResolutionRequiredException throws DependencyResolutionRequiredException
{ {
return systemClasspathElements; return systemClasspathElements;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getSystemArtifacts()
*/
public List getSystemArtifacts() public List getSystemArtifacts()
{ {
return systemArtifacts; return systemArtifacts;
@ -654,22 +606,19 @@ public class MavenProjectStub
this.model = model; this.model = model;
} }
/** {@inheritDoc} */
public List getSystemDependencies() public List getSystemDependencies()
{ {
return systemDependencies; return systemDependencies;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setModelVersion(java.lang.String)
*/
public void setModelVersion( String string ) public void setModelVersion( String string )
{ {
this.modelVersion = string; this.modelVersion = string;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getModelVersion()
*/
public String getModelVersion() public String getModelVersion()
{ {
return modelVersion; return modelVersion;
@ -685,113 +634,85 @@ public class MavenProjectStub
return ""; return "";
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setGroupId(java.lang.String)
*/
public void setGroupId( String string ) public void setGroupId( String string )
{ {
this.groupId = string; this.groupId = string;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getGroupId()
*/
public String getGroupId() public String getGroupId()
{ {
return groupId; return groupId;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setArtifactId(java.lang.String)
*/
public void setArtifactId( String string ) public void setArtifactId( String string )
{ {
this.artifactId = string; this.artifactId = string;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getArtifactId()
*/
public String getArtifactId() public String getArtifactId()
{ {
return artifactId; return artifactId;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setName(java.lang.String)
*/
public void setName( String string ) public void setName( String string )
{ {
this.name = string; this.name = string;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getName()
*/
public String getName() public String getName()
{ {
return name; return name;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setVersion(java.lang.String)
*/
public void setVersion( String string ) public void setVersion( String string )
{ {
this.version = string; this.version = string;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getVersion()
*/
public String getVersion() public String getVersion()
{ {
return version; return version;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getPackaging()
*/
public String getPackaging() public String getPackaging()
{ {
return packaging; return packaging;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setPackaging(java.lang.String)
*/
public void setPackaging( String string ) public void setPackaging( String string )
{ {
this.packaging = string; this.packaging = string;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setInceptionYear(java.lang.String)
*/
public void setInceptionYear( String string ) public void setInceptionYear( String string )
{ {
this.inceptionYear = string; this.inceptionYear = string;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getInceptionYear()
*/
public String getInceptionYear() public String getInceptionYear()
{ {
return inceptionYear; return inceptionYear;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setUrl(java.lang.String)
*/
public void setUrl( String string ) public void setUrl( String string )
{ {
this.url = string; this.url = string;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getUrl()
*/
public String getUrl() public String getUrl()
{ {
return url; return url;
@ -867,17 +788,13 @@ public class MavenProjectStub
return null; return null;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setDescription(java.lang.String)
*/
public void setDescription( String string ) public void setDescription( String string )
{ {
this.description = string; this.description = string;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getDescription()
*/
public String getDescription() public String getDescription()
{ {
return description; return description;
@ -1013,11 +930,13 @@ public class MavenProjectStub
// nop // nop
} }
/** {@inheritDoc} */
public void setBuild( Build build ) public void setBuild( Build build )
{ {
this.build = build; this.build = build;
} }
/** {@inheritDoc} */
public Build getBuild() public Build getBuild()
{ {
return build; return build;
@ -1083,17 +1002,13 @@ public class MavenProjectStub
return null; return null;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setLicenses(java.util.List)
*/
public void setLicenses( List licenses ) public void setLicenses( List licenses )
{ {
this.licenses = licenses; this.licenses = licenses;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getLicenses()
*/
public List getLicenses() public List getLicenses()
{ {
return licenses; return licenses;
@ -1319,33 +1234,25 @@ public class MavenProjectStub
// nop // nop
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getCollectedProjects()
*/
public List getCollectedProjects() public List getCollectedProjects()
{ {
return collectedProjects; return collectedProjects;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setCollectedProjects(java.util.List)
*/
public void setCollectedProjects( List list ) public void setCollectedProjects( List list )
{ {
this.collectedProjects = list; this.collectedProjects = list;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setPluginArtifactRepositories(java.util.List)
*/
public void setPluginArtifactRepositories( List list ) public void setPluginArtifactRepositories( List list )
{ {
this.pluginArtifactRepositories = list; this.pluginArtifactRepositories = list;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getPluginArtifactRepositories()
*/
public List getPluginArtifactRepositories() public List getPluginArtifactRepositories()
{ {
return pluginArtifactRepositories; return pluginArtifactRepositories;
@ -1371,25 +1278,19 @@ public class MavenProjectStub
return Collections.EMPTY_LIST; return Collections.EMPTY_LIST;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setActiveProfiles(java.util.List)
*/
public void setActiveProfiles( List list ) public void setActiveProfiles( List list )
{ {
activeProfiles = list; activeProfiles = list;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getActiveProfiles()
*/
public List getActiveProfiles() public List getActiveProfiles()
{ {
return activeProfiles; return activeProfiles;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#addAttachedArtifact(org.apache.maven.artifact.Artifact)
*/
public void addAttachedArtifact( Artifact artifact ) public void addAttachedArtifact( Artifact artifact )
{ {
if ( attachedArtifacts == null ) if ( attachedArtifacts == null )
@ -1402,9 +1303,7 @@ public class MavenProjectStub
} }
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getAttachedArtifacts()
*/
public List getAttachedArtifacts() public List getAttachedArtifacts()
{ {
return attachedArtifacts; return attachedArtifacts;
@ -1472,49 +1371,37 @@ public class MavenProjectStub
// nop // nop
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getDependencyArtifacts()
*/
public Set getDependencyArtifacts() public Set getDependencyArtifacts()
{ {
return dependencyArtifacts; return dependencyArtifacts;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setDependencyArtifacts(java.util.Set)
*/
public void setDependencyArtifacts( Set set ) public void setDependencyArtifacts( Set set )
{ {
this.dependencyArtifacts = set; this.dependencyArtifacts = set;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setReleaseArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository)
*/
public void setReleaseArtifactRepository( ArtifactRepository artifactRepository ) public void setReleaseArtifactRepository( ArtifactRepository artifactRepository )
{ {
this.releaseArtifactRepository = artifactRepository; this.releaseArtifactRepository = artifactRepository;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setSnapshotArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository)
*/
public void setSnapshotArtifactRepository( ArtifactRepository artifactRepository ) public void setSnapshotArtifactRepository( ArtifactRepository artifactRepository )
{ {
this.snapshotArtifactRepository = artifactRepository; this.snapshotArtifactRepository = artifactRepository;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setOriginalModel(org.apache.maven.model.Model)
*/
public void setOriginalModel( Model model ) public void setOriginalModel( Model model )
{ {
this.originalModel = model; this.originalModel = model;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getOriginalModel()
*/
public Model getOriginalModel() public Model getOriginalModel()
{ {
return originalModel; return originalModel;
@ -1591,25 +1478,19 @@ public class MavenProjectStub
return Collections.EMPTY_MAP; return Collections.EMPTY_MAP;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#isExecutionRoot()
*/
public boolean isExecutionRoot() public boolean isExecutionRoot()
{ {
return executionRoot; return executionRoot;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#setExecutionRoot(boolean)
*/
public void setExecutionRoot( boolean b ) public void setExecutionRoot( boolean b )
{ {
this.executionRoot = b; this.executionRoot = b;
} }
/** /** {@inheritDoc} */
* @see org.apache.maven.project.MavenProject#getDefaultGoal()
*/
public String getDefaultGoal() public String getDefaultGoal()
{ {
return defaultGoal; return defaultGoal;

View File

@ -32,7 +32,7 @@ import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
public class StubArtifactRepository public class StubArtifactRepository
implements ArtifactRepository implements ArtifactRepository
{ {
String baseDir = null; private String baseDir = null;
/** /**
* Default constructor * Default constructor

View File

@ -43,12 +43,11 @@ import org.apache.maven.plugin.testing.ArtifactStubFactory;
public class StubArtifactResolver public class StubArtifactResolver
implements ArtifactResolver implements ArtifactResolver
{ {
private boolean throwArtifactResolutionException;
boolean throwArtifactResolutionException; private boolean throwArtifactNotFoundException;
boolean throwArtifactNotFoundException; private ArtifactStubFactory factory;
ArtifactStubFactory factory;
/** /**
* Default constructor * Default constructor