Class PluginStub

java.lang.Object
org.apache.maven.api.plugin.testing.stubs.PluginStub
All Implemented Interfaces:
Plugin

public class PluginStub extends Object implements 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: