You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2022/03/08 10:48:53 UTC

[maven-assembly-plugin] branch mvn4 updated: runtime support

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch mvn4
in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git


The following commit(s) were added to refs/heads/mvn4 by this push:
     new ce8a3a5  runtime support
ce8a3a5 is described below

commit ce8a3a586e9bc75b18a57ba1af11472e7b0f1e41
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Mar 8 11:48:50 2022 +0100

    runtime support
---
 .../ComponentsXmlArchiverFileFilterTest.java       | 24 +++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/assembly/filter/ComponentsXmlArchiverFileFilterTest.java b/src/test/java/org/apache/maven/plugins/assembly/filter/ComponentsXmlArchiverFileFilterTest.java
index ea8ea07..cf52ec0 100644
--- a/src/test/java/org/apache/maven/plugins/assembly/filter/ComponentsXmlArchiverFileFilterTest.java
+++ b/src/test/java/org/apache/maven/plugins/assembly/filter/ComponentsXmlArchiverFileFilterTest.java
@@ -145,7 +145,7 @@ public class ComponentsXmlArchiverFileFilterTest
     public void testAddToArchive_ShouldWriteComponentWithoutHintToFile()
         throws Exception
     {
-        final Xpp3Dom dom = createComponentDom( new ComponentDef( "role", null, "impl" ) );
+        final Xpp3Dom dom = createComponentDom( new ComponentDef( "role", null, "org/apache/maven/internal/impl" ) );
 
         filter.components = new LinkedHashMap<>();
         filter.components.put( "role", dom );
@@ -166,14 +166,14 @@ public class ComponentsXmlArchiverFileFilterTest
 
         assertEquals( "role", ( (Text) role.selectSingleNode( doc ) ).getText() );
         assertNull( hint.selectSingleNode( doc ) );
-        assertEquals( "impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() );
+        assertEquals( "org/apache/maven/internal/impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() );
     }
 
     @Test
     public void testAddToArchive_ShouldWriteComponentWithHintToFile()
         throws Exception
     {
-        final Xpp3Dom dom = createComponentDom( new ComponentDef( "role", "hint", "impl" ) );
+        final Xpp3Dom dom = createComponentDom( new ComponentDef( "role", "hint", "org/apache/maven/internal/impl" ) );
 
         filter.components = new LinkedHashMap<>();
         filter.components.put( "rolehint", dom );
@@ -194,7 +194,7 @@ public class ComponentsXmlArchiverFileFilterTest
 
         assertEquals( "role", ( (Text) role.selectSingleNode( doc ) ).getText() );
         assertEquals( "hint", ( (Text) hint.selectSingleNode( doc ) ).getText() );
-        assertEquals( "impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() );
+        assertEquals( "org/apache/maven/internal/impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() );
     }
 
     @Test
@@ -203,11 +203,11 @@ public class ComponentsXmlArchiverFileFilterTest
     {
         filter.components = new LinkedHashMap<>();
 
-        final Xpp3Dom dom = createComponentDom( new ComponentDef( "role", "hint", "impl" ) );
+        final Xpp3Dom dom = createComponentDom( new ComponentDef( "role", "hint", "org/apache/maven/internal/impl" ) );
 
         filter.components.put( "rolehint", dom );
 
-        final Xpp3Dom dom2 = createComponentDom( new ComponentDef( "role", "hint2", "impl" ) );
+        final Xpp3Dom dom2 = createComponentDom( new ComponentDef( "role", "hint2", "org/apache/maven/internal/impl" ) );
 
         filter.components.put( "rolehint2", dom2 );
 
@@ -227,7 +227,7 @@ public class ComponentsXmlArchiverFileFilterTest
 
         assertEquals( "role", ( (Text) role.selectSingleNode( doc ) ).getText() );
         assertEquals( "hint", ( (Text) hint.selectSingleNode( doc ) ).getText() );
-        assertEquals( "impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() );
+        assertEquals( "org/apache/maven/internal/impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() );
 
         final XPath role2 = XPath.newInstance( "//component[position()=2]/role/text()" );
         final XPath hint2 = XPath.newInstance( "//component[position()=2]/role-hint/text()" );
@@ -235,7 +235,7 @@ public class ComponentsXmlArchiverFileFilterTest
 
         assertEquals( "role", ( (Text) role2.selectSingleNode( doc ) ).getText() );
         assertEquals( "hint2", ( (Text) hint2.selectSingleNode( doc ) ).getText() );
-        assertEquals( "impl", ( (Text) implementation2.selectSingleNode( doc ) ).getText() );
+        assertEquals( "org/apache/maven/internal/impl", ( (Text) implementation2.selectSingleNode( doc ) ).getText() );
 
     }
 
@@ -245,11 +245,11 @@ public class ComponentsXmlArchiverFileFilterTest
     {
         filter.components = new LinkedHashMap<>();
 
-        final Xpp3Dom dom = createComponentDom( new ComponentDef( "role", "hint", "impl" ) );
+        final Xpp3Dom dom = createComponentDom( new ComponentDef( "role", "hint", "org/apache/maven/internal/impl" ) );
 
         filter.components.put( "rolehint", dom );
 
-        final Xpp3Dom dom2 = createComponentDom( new ComponentDef( "role", "hint2", "impl" ) );
+        final Xpp3Dom dom2 = createComponentDom( new ComponentDef( "role", "hint2", "org/apache/maven/internal/impl" ) );
 
         filter.components.put( "rolehint2", dom2 );
 
@@ -284,7 +284,7 @@ public class ComponentsXmlArchiverFileFilterTest
 
         assertEquals( "role", ( (Text) role.selectSingleNode( doc ) ).getText() );
         assertEquals( "hint", ( (Text) hint.selectSingleNode( doc ) ).getText() );
-        assertEquals( "impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() );
+        assertEquals( "org/apache/maven/internal/impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() );
 
         final XPath role2 = XPath.newInstance( "//component[position()=2]/role/text()" );
         final XPath hint2 = XPath.newInstance( "//component[position()=2]/role-hint/text()" );
@@ -292,7 +292,7 @@ public class ComponentsXmlArchiverFileFilterTest
 
         assertEquals( "role", ( (Text) role2.selectSingleNode( doc ) ).getText() );
         assertEquals( "hint2", ( (Text) hint2.selectSingleNode( doc ) ).getText() );
-        assertEquals( "impl", ( (Text) implementation2.selectSingleNode( doc ) ).getText() );
+        assertEquals( "org/apache/maven/internal/impl", ( (Text) implementation2.selectSingleNode( doc ) ).getText() );
 
     }