@@ -156,7 +156,7 @@ public void testNoTransitive() throws Exception {
156
156
157
157
public void testExcludeType () throws Exception {
158
158
mojo .getProject ().setArtifacts (stubFactory .getTypedArtifacts ());
159
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
159
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
160
160
mojo .excludeTypes = "jar" ;
161
161
mojo .execute ();
162
162
@@ -170,7 +170,7 @@ public void testExcludeType() throws Exception {
170
170
171
171
public void testIncludeType () throws Exception {
172
172
mojo .getProject ().setArtifacts (stubFactory .getTypedArtifacts ());
173
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
173
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
174
174
175
175
mojo .includeTypes = "jar" ;
176
176
mojo .excludeTypes = "jar" ;
@@ -198,7 +198,7 @@ public void testIncludeType() throws Exception {
198
198
199
199
public void testExcludeArtifactId () throws Exception {
200
200
mojo .getProject ().setArtifacts (stubFactory .getArtifactArtifacts ());
201
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
201
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
202
202
mojo .excludeArtifactIds = "one" ;
203
203
mojo .execute ();
204
204
@@ -212,7 +212,7 @@ public void testExcludeArtifactId() throws Exception {
212
212
213
213
public void testIncludeArtifactId () throws Exception {
214
214
mojo .getProject ().setArtifacts (stubFactory .getArtifactArtifacts ());
215
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
215
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
216
216
217
217
mojo .includeArtifactIds = "one" ;
218
218
mojo .excludeArtifactIds = "one" ;
@@ -240,7 +240,7 @@ public void testIncludeArtifactId() throws Exception {
240
240
241
241
public void testIncludeGroupId () throws Exception {
242
242
mojo .getProject ().setArtifacts (stubFactory .getGroupIdArtifacts ());
243
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
243
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
244
244
mojo .includeGroupIds = "one" ;
245
245
mojo .excludeGroupIds = "one" ;
246
246
// shouldn't get anything
@@ -267,7 +267,7 @@ public void testIncludeGroupId() throws Exception {
267
267
268
268
public void testExcludeGroupId () throws Exception {
269
269
mojo .getProject ().setArtifacts (stubFactory .getGroupIdArtifacts ());
270
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
270
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
271
271
mojo .excludeGroupIds = "one" ;
272
272
mojo .execute ();
273
273
@@ -282,7 +282,7 @@ public void testExcludeGroupId() throws Exception {
282
282
283
283
public void testExcludeMultipleGroupIds () throws Exception {
284
284
mojo .getProject ().setArtifacts (stubFactory .getGroupIdArtifacts ());
285
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
285
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
286
286
mojo .excludeGroupIds = "one,two" ;
287
287
mojo .execute ();
288
288
@@ -298,7 +298,7 @@ public void testExcludeMultipleGroupIds() throws Exception {
298
298
299
299
public void testExcludeClassifier () throws Exception {
300
300
mojo .getProject ().setArtifacts (stubFactory .getClassifiedArtifacts ());
301
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
301
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
302
302
mojo .excludeClassifiers = "one" ;
303
303
mojo .execute ();
304
304
@@ -312,7 +312,7 @@ public void testExcludeClassifier() throws Exception {
312
312
313
313
public void testIncludeClassifier () throws Exception {
314
314
mojo .getProject ().setArtifacts (stubFactory .getClassifiedArtifacts ());
315
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
315
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
316
316
317
317
mojo .includeClassifiers = "one" ;
318
318
mojo .excludeClassifiers = "one" ;
@@ -340,7 +340,7 @@ public void testIncludeClassifier() throws Exception {
340
340
341
341
public void testSubPerType () throws Exception {
342
342
mojo .getProject ().setArtifacts (stubFactory .getTypedArtifacts ());
343
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
343
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
344
344
mojo .useSubDirectoryPerType = true ;
345
345
mojo .execute ();
346
346
@@ -555,7 +555,7 @@ public void testGetDependencies() throws MojoExecutionException {
555
555
556
556
public void testExcludeProvidedScope () throws Exception {
557
557
mojo .getProject ().setArtifacts (stubFactory .getScopedArtifacts ());
558
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
558
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
559
559
mojo .excludeScope = "provided" ;
560
560
// mojo.silent = false;
561
561
@@ -573,7 +573,7 @@ public void testExcludeProvidedScope() throws Exception {
573
573
574
574
public void testExcludeSystemScope () throws Exception {
575
575
mojo .getProject ().setArtifacts (stubFactory .getScopedArtifacts ());
576
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
576
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
577
577
mojo .excludeScope = "system" ;
578
578
// mojo.silent = false;
579
579
@@ -591,7 +591,7 @@ public void testExcludeSystemScope() throws Exception {
591
591
592
592
public void testExcludeCompileScope () throws Exception {
593
593
mojo .getProject ().setArtifacts (stubFactory .getScopedArtifacts ());
594
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
594
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
595
595
mojo .excludeScope = "compile" ;
596
596
mojo .execute ();
597
597
ScopeArtifactFilter saf = new ScopeArtifactFilter (mojo .excludeScope );
@@ -607,7 +607,7 @@ public void testExcludeCompileScope() throws Exception {
607
607
608
608
public void testExcludeTestScope () throws IOException , MojoFailureException {
609
609
mojo .getProject ().setArtifacts (stubFactory .getScopedArtifacts ());
610
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
610
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
611
611
mojo .excludeScope = "test" ;
612
612
613
613
try {
@@ -620,7 +620,7 @@ public void testExcludeTestScope() throws IOException, MojoFailureException {
620
620
621
621
public void testExcludeRuntimeScope () throws Exception {
622
622
mojo .getProject ().setArtifacts (stubFactory .getScopedArtifacts ());
623
- mojo .getProject ().setDependencyArtifacts (new HashSet <Artifact >());
623
+ mojo .getProject ().setDependencyArtifacts (new HashSet <>());
624
624
mojo .excludeScope = "runtime" ;
625
625
mojo .execute ();
626
626
ScopeArtifactFilter saf = new ScopeArtifactFilter (mojo .excludeScope );
0 commit comments