You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ma...@apache.org on 2020/10/23 13:33:16 UTC
[maven] branch master updated: [MNG-7002] Added a test scenario for
including child modules when using the --pl switch.
This is an automated email from the ASF dual-hosted git repository.
martinkanters pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new afd17a3 [MNG-7002] Added a test scenario for including child modules when using the --pl switch.
new 6034102 Merge pull request #387 from infosupport/MNG-7002-include-unit-test-for-pl-including-children
afd17a3 is described below
commit afd17a3979fb71b33833a629bf287cbaff927f4d
Author: Martin Kanters <ma...@apache.org>
AuthorDate: Fri Oct 23 10:41:31 2020 +0200
[MNG-7002] Added a test scenario for including child modules when using the --pl switch.
---
.../src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java b/maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java
index 4036c18..7b13c80 100644
--- a/maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java
+++ b/maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java
@@ -121,6 +121,9 @@ public class DefaultGraphBuilderTest
scenario( "Selected project" )
.selectedProjects( MODULE_B )
.expectResult( MODULE_B ),
+ scenario( "Selected project (including child modules)" )
+ .selectedProjects( MODULE_C )
+ .expectResult( MODULE_C, MODULE_C_1, MODULE_C_2 ),
scenario( "Excluded project" )
.excludedProjects( MODULE_B )
.expectResult( PARENT_MODULE, MODULE_C, MODULE_C_1, MODULE_A, MODULE_C_2, INDEPENDENT_MODULE ),