1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.shared.artifact.filter;
20
21 import java.util.List;
22
23 import junit.framework.TestCase;
24
25 import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
26
27 public class PatternIncludesArtifactFilterTest
28 extends TestCase
29 {
30 private PatternArtifactFilterTCK tck = new PatternArtifactFilterTCK()
31 {
32
33 protected ArtifactFilter createFilter( List patterns )
34 {
35 return new PatternIncludesArtifactFilter( patterns );
36 }
37
38 protected ArtifactFilter createFilter( List patterns, boolean actTransitively )
39 {
40 return new PatternIncludesArtifactFilter( patterns, actTransitively );
41 }
42
43 };
44
45 public void testShouldTriggerBothPatternsWithWildcards()
46 {
47 tck.testShouldTriggerBothPatternsWithWildcards( false );
48 }
49
50 public void testShouldIncludeDirectlyMatchedArtifactByDependencyConflictId()
51 {
52 tck.testShouldIncludeDirectlyMatchedArtifactByDependencyConflictId( false );
53 }
54
55 public void testShouldIncludeDirectlyMatchedArtifactByGroupIdArtifactId()
56 {
57 tck.testShouldIncludeDirectlyMatchedArtifactByGroupIdArtifactId( false );
58 }
59
60 public void testShouldIncludeWhenPatternMatchesDependencyTrailAndTransitivityIsEnabled()
61 {
62 tck.testShouldIncludeWhenPatternMatchesDependencyTrailAndTransitivityIsEnabled( false );
63 }
64
65 public void testShouldNotIncludeWhenArtifactIdDiffers()
66 {
67 tck.testShouldNotIncludeWhenArtifactIdDiffers( false );
68 }
69
70 public void testShouldNotIncludeWhenBothIdElementsDiffer()
71 {
72 tck.testShouldNotIncludeWhenBothIdElementsDiffer( false );
73 }
74
75 public void testShouldNotIncludeWhenGroupIdDiffers()
76 {
77 tck.testShouldNotIncludeWhenGroupIdDiffers( false );
78 }
79
80 public void testShouldNotIncludeWhenNegativeMatch()
81 {
82 tck.testShouldNotIncludeWhenNegativeMatch( false );
83 }
84
85 public void testShouldIncludeWhenWildcardMatchesInsideSequence()
86 {
87 tck.testShouldIncludeWhenWildcardMatchesInsideSequence( false );
88 }
89
90 public void testShouldIncludeWhenWildcardMatchesOutsideSequence()
91 {
92 tck.testShouldIncludeWhenWildcardMatchesOutsideSequence( false );
93 }
94
95 public void testShouldIncludeTransitiveDependencyWhenWildcardMatchesButDoesntMatchParent()
96 {
97 tck.testShouldIncludeTransitiveDependencyWhenWildcardMatchesButDoesntMatchParent( false );
98 }
99
100
101
102
103
104
105 }