View Javadoc
1   package org.apache.maven.plugin.surefire;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *     http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.io.File;
23  import java.util.List;
24  import org.apache.maven.artifact.repository.ArtifactRepository;
25  
26  /**
27   * This interface contains all the common parameters that have different implementations in Surefire vs IntegrationTest
28   *
29   * @author Stephen Connolly
30   * @noinspection UnusedDeclaration, UnusedDeclaration
31   */
32  public interface SurefireExecutionParameters
33  {
34      boolean isSkipTests();
35  
36      void setSkipTests( boolean skipTests );
37  
38      boolean isSkipExec();
39  
40      void setSkipExec( boolean skipExec );
41  
42      boolean isSkip();
43  
44      void setSkip( boolean skip );
45  
46      File getBasedir();
47  
48      void setBasedir( File basedir );
49  
50      File getTestClassesDirectory();
51  
52      void setTestClassesDirectory( File testClassesDirectory );
53  
54      File getClassesDirectory();
55  
56      void setClassesDirectory( File classesDirectory );
57  
58      File getReportsDirectory();
59  
60      void setReportsDirectory( File reportsDirectory );
61  
62      File getTestSourceDirectory();
63  
64      void setTestSourceDirectory( File testSourceDirectory );
65  
66      String getTest();
67  
68      String getTestMethod();
69  
70      void setTest( String test );
71  
72      List<String> getIncludes();
73  
74      void setIncludes( List<String> includes );
75  
76      List<String> getExcludes();
77  
78      void setExcludes( List<String> excludes );
79  
80      ArtifactRepository getLocalRepository();
81  
82      void setLocalRepository( ArtifactRepository localRepository );
83  
84      boolean isPrintSummary();
85  
86      void setPrintSummary( boolean printSummary );
87  
88      String getReportFormat();
89  
90      void setReportFormat( String reportFormat );
91  
92      boolean isUseFile();
93  
94      void setUseFile( boolean useFile );
95  
96      String getDebugForkedProcess();
97  
98      void setDebugForkedProcess( String debugForkedProcess );
99  
100     int getForkedProcessTimeoutInSeconds();
101 
102     void setForkedProcessTimeoutInSeconds( int forkedProcessTimeoutInSeconds );
103 
104     double getParallelTestsTimeoutInSeconds();
105 
106     void setParallelTestsTimeoutInSeconds( double parallelTestsTimeoutInSeconds );
107 
108     double getParallelTestsTimeoutForcedInSeconds();
109 
110     void setParallelTestsTimeoutForcedInSeconds( double parallelTestsTimeoutForcedInSeconds );
111 
112     boolean isUseSystemClassLoader();
113 
114     void setUseSystemClassLoader( boolean useSystemClassLoader );
115 
116     boolean isUseManifestOnlyJar();
117 
118     void setUseManifestOnlyJar( boolean useManifestOnlyJar );
119 
120     Boolean getFailIfNoSpecifiedTests();
121 
122     void setFailIfNoSpecifiedTests( Boolean failIfNoSpecifiedTests );
123 }