1 package org.apache.maven.surefire.booter;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 import java.util.Map;
24 import org.apache.maven.surefire.report.ReporterConfiguration;
25 import org.apache.maven.surefire.testset.DirectoryScannerParameters;
26 import org.apache.maven.surefire.testset.RunOrderParameters;
27 import org.apache.maven.surefire.testset.TestArtifactInfo;
28 import org.apache.maven.surefire.testset.TestRequest;
29
30
31
32
33 public class Foo
34 implements DirectoryScannerParametersAware, TestRequestAware, ProviderPropertiesAware, ReporterConfigurationAware,
35 SurefireClassLoadersAware, TestArtifactInfoAware, RunOrderParametersAware
36 {
37 DirectoryScannerParameters directoryScannerParameters;
38
39 Map<String, String> providerProperties;
40
41 ReporterConfiguration reporterConfiguration;
42
43 ClassLoader surefireClassLoader;
44
45 ClassLoader testClassLoader;
46
47 TestRequest testRequest;
48
49 TestArtifactInfo testArtifactInfo;
50
51 RunOrderParameters runOrderParameters;
52
53 boolean called = false;
54
55 @Override
56 public void setDirectoryScannerParameters( DirectoryScannerParameters directoryScanner )
57 {
58 this.directoryScannerParameters = directoryScanner;
59 this.called = true;
60 }
61
62
63
64
65
66 public Boolean isCalled()
67 {
68 return called;
69 }
70
71 @Override
72 public void setProviderProperties( Map<String, String> providerProperties )
73 {
74 this.providerProperties = providerProperties;
75 this.called = true;
76 }
77
78 @Override
79 public void setReporterConfiguration( ReporterConfiguration reporterConfiguration )
80 {
81 this.reporterConfiguration = reporterConfiguration;
82 this.called = true;
83 }
84
85 @Override
86 public void setClassLoaders( ClassLoader testClassLoader )
87 {
88 this.testClassLoader = testClassLoader;
89 this.surefireClassLoader = surefireClassLoader;
90 this.called = true;
91 }
92
93 @Override
94 public void setTestRequest( TestRequest testRequest1 )
95 {
96 this.testRequest = testRequest1;
97 this.called = true;
98 }
99
100 @Override
101 public void setTestArtifactInfo( TestArtifactInfo testArtifactInfo )
102 {
103 this.testArtifactInfo = testArtifactInfo;
104 this.called = true;
105 }
106
107 @Override
108 public void setRunOrderParameters( RunOrderParameters runOrderParameters )
109 {
110 this.runOrderParameters = runOrderParameters;
111 this.called = true;
112 }
113 }