Class MojoExecutionStub

java.lang.Object
org.apache.maven.api.plugin.testing.stubs.MojoExecutionStub
All Implemented Interfaces:
MojoExecution

public class MojoExecutionStub extends Object implements MojoExecution
A stub implementation of MojoExecution for testing Maven plugins. This class provides a simplified representation of a Mojo execution context, allowing tests to simulate plugin executions without a full Maven environment.

Example usage:

 MojoExecutionStub execution = new MojoExecutionStub("myExecution", "myGoal");
 execution.setPlugin(new PluginStub());
 execution.setDescriptor(mojoDescriptor);
 
Since:
4.0.0
See Also: