ajarmoniuk commented on code in PR #31:
URL: 
https://github.com/apache/maven-common-artifact-filters/pull/31#discussion_r965553206


##########
src/test/java/org/apache/maven/shared/artifact/filter/AbstractPatternArtifactFilterTest.java:
##########
@@ -579,4 +579,26 @@ public void testmassembly955()
             assertTrue( filter.include( artifact2 ) );
         }
     }
+
+    @Test
+    public void testPartialWildcardShouldNotMatchEmptyComponent()
+    {
+        Artifact artifact = mock( Artifact.class );
+        when( artifact.getGroupId() ).thenReturn( "test-group" );
+        when( artifact.getArtifactId() ).thenReturn( "test-artifact" );
+        when( artifact.getVersion() ).thenReturn( "test-version" );
+        when( artifact.getType() ).thenReturn( null );

Review Comment:
   Ok, done -> I had to mock or subclass ArtifactHandler because the classifier 
was null.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to