Class PluginStub
java.lang.Object
org.apache.maven.api.plugin.testing.stubs.PluginStub
- All Implemented Interfaces:
 Plugin
A stub implementation of 
Plugin for testing Maven plugins.
 Provides a lightweight plugin context that can be configured with models,
 descriptors, lifecycles, and dependencies needed for testing.
 This stub is commonly used in conjunction with MojoExecutionStub
 to create a complete testing environment for plugin executions.
Example usage:
PluginStub plugin = new PluginStub(); plugin.setDescriptor(pluginDescriptor); plugin.setModel(pluginModel);
- Since:
 - 4.0.0
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetModel()voidsetArtifact(Artifact artifact) voidsetClassLoader(ClassLoader classLoader) voidsetDependencies(List<Dependency> dependencies) voidsetDependenciesMap(Map<String, Dependency> dependenciesMap) voidsetDescriptor(PluginDescriptor descriptor) voidsetLifecycles(List<Lifecycle> lifecycles) void 
- 
Constructor Details
- 
PluginStub
public PluginStub() 
 - 
 - 
Method Details
- 
getModel
 - 
setModel
 - 
getDescriptor
- Specified by:
 getDescriptorin interfacePlugin
 - 
setDescriptor
 - 
getLifecycles
- Specified by:
 getLifecyclesin interfacePlugin
 - 
setLifecycles
 - 
getClassLoader
- Specified by:
 getClassLoaderin interfacePlugin
 - 
setClassLoader
 - 
getArtifact
- Specified by:
 getArtifactin interfacePlugin
 - 
setArtifact
 - 
getDependencies
- Specified by:
 getDependenciesin interfacePlugin
 - 
setDependencies
 - 
getDependenciesMap
- Specified by:
 getDependenciesMapin interfacePlugin
 - 
setDependenciesMap
 
 -