File tree Expand file tree Collapse file tree 6 files changed +61
-1
lines changed
test/java/org/codehaus/plexus/testing Expand file tree Collapse file tree 6 files changed +61
-1
lines changed Original file line number Diff line number Diff line change 1212 <version >1.6.1-SNAPSHOT</version >
1313
1414 <name >Plexus Testing</name >
15+ <description >Library to help testing plexus components</description >
16+ <url >https://codehaus-plexus.github.io/plexus-testing/</url >
1517
1618 <scm >
1719 <connection >scm:git:https://github.com/codehaus-plexus/plexus-testing.git</connection >
1820 <developerConnection >${project.scm.connection} </developerConnection >
1921 <tag >HEAD</tag >
2022 <url >https://github.com/codehaus-plexus/plexus-testing</url >
2123 </scm >
24+
2225 <issueManagement >
2326 <system >github</system >
2427 <url >https://github.com/codehaus-plexus/plexus-testing/issues</url >
2528 </issueManagement >
29+
2630 <distributionManagement >
2731 <site >
2832 <id >github:gh-pages</id >
7074 </dependency >
7175 </dependencies >
7276
77+ <build >
78+ <plugins >
79+ <plugin >
80+ <groupId >org.apache.maven.plugins</groupId >
81+ <artifactId >maven-scm-publish-plugin</artifactId >
82+ <configuration >
83+ <content >${project.reporting.outputDirectory} </content >
84+ <!-- mono-module doesn't require site:stage -->
85+ </configuration >
86+ <executions >
87+ <execution >
88+ <id >scm-publish</id >
89+ <!-- deploy site with maven-scm-publish-plugin -->
90+ <goals >
91+ <goal >publish-scm</goal >
92+ </goals >
93+ <phase >site-deploy</phase >
94+ </execution >
95+ </executions >
96+ </plugin >
97+ </plugins >
98+ </build >
7399</project >
Original file line number Diff line number Diff line change 1+ # Plexus Testing
2+
3+ Library to help testing plexus components
4+
5+ ## Example usage
6+
7+ ### Test class
8+
9+ <!-- MACRO{snippet|id=test-class|file=src/test/java/org/codehaus/plexus/testing/PlexusTestJavaxTest.java} -->
10+
11+ ### Used classes in test
12+
13+ <!-- MACRO{snippet|id=test-component|file=src/test/java/org/codehaus/plexus/testing/TestJavaxComponent.java} -->
14+ <!-- MACRO{snippet|id=test-component2|file=src/test/java/org/codehaus/plexus/testing/TestJavaxComponent2.java} -->
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+
3+ <site xmlns =" http://maven.apache.org/SITE/2.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd" >
5+
6+ <body >
7+ <menu name =" Overview" >
8+ <item name =" Introduction" href =" index.html" />
9+ <item name =" Javadoc" href =" apidocs/index.html" />
10+ </menu >
11+
12+ <menu ref =" parent" />
13+ <menu ref =" reports" />
14+ </body >
15+ </site >
Original file line number Diff line number Diff line change 1818 * specific language governing permissions and limitations
1919 * under the License.
2020 */
21-
21+ // START SNIPPET: test-class
2222import javax .inject .Inject ;
2323
2424import org .junit .jupiter .api .Test ;
@@ -37,3 +37,4 @@ void dependencyShouldBeInjected() {
3737 assertNotNull (testJavaxComponent .getTestComponent2 ());
3838 }
3939}
40+ // END SNIPPET: test-class
Original file line number Diff line number Diff line change 1919 * under the License.
2020 */
2121
22+ // START SNIPPET: test-component
2223import javax .inject .Inject ;
2324import javax .inject .Named ;
2425
@@ -31,3 +32,4 @@ public TestJavaxComponent2 getTestComponent2() {
3132 return testJavaxComponent2 ;
3233 }
3334}
35+ // END SNIPPET: test-component
Original file line number Diff line number Diff line change 1919 * under the License.
2020 */
2121
22+ // START SNIPPET: test-component2
2223import javax .inject .Named ;
2324
2425@ Named
2526public class TestJavaxComponent2 {}
27+ // END SNIPPET: test-component2
You can’t perform that action at this time.
0 commit comments