1 package org.apache.maven.surefire.api.testset;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23 import java.util.List;
24 import org.apache.maven.surefire.api.util.RunOrder;
25
26
27
28
29 public class DirectoryScannerParameters
30 {
31 private final File testClassesDirectory;
32
33 @Deprecated
34 private final List<String> includes;
35
36 @Deprecated
37 private final List<String> excludes;
38
39 @Deprecated
40 private final List<String> specificTests;
41
42 private final RunOrder[] runOrder;
43
44 private DirectoryScannerParameters( File testClassesDirectory, List<String> includes, List<String> excludes,
45 List<String> specificTests, RunOrder[] runOrder )
46 {
47 this.testClassesDirectory = testClassesDirectory;
48 this.includes = includes;
49 this.excludes = excludes;
50 this.specificTests = specificTests;
51 this.runOrder = runOrder;
52 }
53
54 public DirectoryScannerParameters( File testClassesDirectory, @Deprecated List<String> includes,
55 @Deprecated List<String> excludes, @Deprecated List<String> specificTests,
56 String runOrder )
57 {
58 this( testClassesDirectory, includes, excludes, specificTests,
59 runOrder == null ? RunOrder.DEFAULT : RunOrder.valueOfMulti( runOrder ) );
60 }
61
62 @Deprecated
63 public List<String> getSpecificTests()
64 {
65 return specificTests;
66 }
67
68
69
70
71
72
73 public File getTestClassesDirectory()
74 {
75 return testClassesDirectory;
76 }
77
78
79
80
81
82
83 @Deprecated
84 public List<String> getIncludes()
85 {
86 return includes;
87 }
88
89
90
91
92
93
94 @Deprecated
95 public List<String> getExcludes()
96 {
97 return excludes;
98 }
99
100 public RunOrder[] getRunOrder()
101 {
102 return runOrder;
103 }
104 }