1 package org.apache.maven.surefire.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.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 boolean failIfNoTests;
43
44 private final RunOrder[] runOrder;
45
46 private DirectoryScannerParameters( File testClassesDirectory, List<String> includes, List<String> excludes,
47 List<String> specificTests, boolean failIfNoTests, RunOrder[] runOrder )
48 {
49 this.testClassesDirectory = testClassesDirectory;
50 this.includes = includes;
51 this.excludes = excludes;
52 this.specificTests = specificTests;
53 this.failIfNoTests = failIfNoTests;
54 this.runOrder = runOrder;
55 }
56
57 public DirectoryScannerParameters( File testClassesDirectory, @Deprecated List<String> includes,
58 @Deprecated List<String> excludes, @Deprecated List<String> specificTests,
59 boolean failIfNoTests, String runOrder )
60 {
61 this( testClassesDirectory, includes, excludes, specificTests, failIfNoTests,
62 runOrder == null ? RunOrder.DEFAULT : RunOrder.valueOfMulti( runOrder ) );
63 }
64
65 @Deprecated
66 public List<String> getSpecificTests()
67 {
68 return specificTests;
69 }
70
71
72
73
74
75
76 public File getTestClassesDirectory()
77 {
78 return testClassesDirectory;
79 }
80
81
82
83
84
85
86 @Deprecated
87 public List<String> getIncludes()
88 {
89 return includes;
90 }
91
92
93
94
95
96
97 @Deprecated
98 public List<String> getExcludes()
99 {
100 return excludes;
101 }
102
103
104
105
106
107
108 public boolean isFailIfNoTests()
109 {
110 return failIfNoTests;
111 }
112
113 public RunOrder[] getRunOrder()
114 {
115 return runOrder;
116 }
117 }