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