{"comment":{"url":"https://api.github.com/repos/apache/maven-common-artifact-filters/comments/30292799","html_url":"https://github.com/apache/maven-common-artifact-filters/commit/1b5d50b390c4548d16d0c7d507c38240c6f49b07#commitcomment-30292799","id":30292799,"node_id":"MDEzOkNvbW1pdENvbW1lbnQzMDI5Mjc5OQ==","user":{"login":"turbanoff","id":741251,"node_id":"MDQ6VXNlcjc0MTI1MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/741251?v=4","gravatar_id":"","url":"https://api.github.com/users/turbanoff","html_url":"https://github.com/turbanoff","followers_url":"https://api.github.com/users/turbanoff/followers","following_url":"https://api.github.com/users/turbanoff/following{/other_user}","gists_url":"https://api.github.com/users/turbanoff/gists{/gist_id}","starred_url":"https://api.github.com/users/turbanoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turbanoff/subscriptions","organizations_url":"https://api.github.com/users/turbanoff/orgs","repos_url":"https://api.github.com/users/turbanoff/repos","events_url":"https://api.github.com/users/turbanoff/events{/privacy}","received_events_url":"https://api.github.com/users/turbanoff/received_events","type":"User","site_admin":false},"position":13,"line":202,"path":"src/main/java/org/apache/maven/shared/artifact/filter/PatternIncludesArtifactFilter.java","commit_id":"1b5d50b390c4548d16d0c7d507c38240c6f49b07","created_at":"2018-08-26T21:42:15Z","updated_at":"2018-08-26T21:42:15Z","author_association":"NONE","body":"Unittest:\r\n\r\n\r\n    public void testShouldAllowWorkWithMultiplePatterns() {\r\n        final String groupId = \"com.mycompany.myproject\";\r\n        final String artifactId = \"some-artifact-id\";\r\n\r\n        final ArtifactMockAndControl mac = new ArtifactMockAndControl( groupId, artifactId );\r\n\r\n        replay( mac.getMock() );\r\n\r\n        final List<String> patterns = new ArrayList<String>();\r\n\r\n        patterns.add( \"com.mycompany.*:*:jar:some-classifier:*\" );\r\n        patterns.add( \"com.mycompany.*:*:jar:*:*\" );\r\n\r\n        final ArtifactFilter filter = createFilter( patterns );\r\n\r\n        if ( !isInclusionExpected() )\r\n        {\r\n            assertFalse( filter.include( mac.artifact ) );\r\n        }\r\n        else\r\n        {\r\n            assertTrue( filter.include( mac.artifact ) );\r\n        }\r\n\r\n        verify( mac.getMock() );\r\n    }"}}
{"actor":{"display_login":"turbanoff"}}