This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-plugin-testing.git
The following commit(s) were added to refs/heads/master by this push:
new de93a24 Add context7.json pointing at the 3.x harness documentation
de93a24 is described below
commit de93a24e74d6a7dd150be7a06ced75b5b5404d7b
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sun Nov 8 02:33:57 2026 +0100
Add context7.json pointing at the 3.x harness documentation
---
context7.json | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/context7.json b/context7.json
new file mode 100644
index 0000000..fe0491d
--- /dev/null
+++ b/context7.json
@@ -0,0 +1,13 @@
+{
+ "$schema": "https://context7.com/schema/context7.json",
+ "projectTitle": "Apache Maven Plugin Testing Harness",
+ "description": "JUnit 5 extension for unit testing Maven 3 plugins: injects
a configured mojo, a mocked MavenProject and MavenSession into the test.",
+ "branch": "maven-plugin-testing-3.x",
+ "folders": ["maven-plugin-testing-harness/src/site/markdown"],
+ "rules": [
+ "Annotate the test class with @MojoTest and receive the mojo as a test
method parameter annotated with @InjectMojo(goal = ..., pom = ...).",
+ "AbstractMojoTestCase and MojoRule are deprecated JUnit 3 and 4 APIs; do
not use them in new tests.",
+ "@InjectMojo applies only the plugin's <configuration> from the POM; the
injected MavenProject is a Mockito spy, so stub any other project state the
mojo reads.",
+ "Set single parameters with @MojoParameter(name = ..., value = ...) and
the project directory with @Basedir."
+ ]
+}