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      List<String> getClasspathDependencyExcludes();
59  
60      void setClasspathDependencyExcludes( List<String> classpathDependencyExcludes );
61  
62      String getClasspathDependencyScopeExclude();
63  
64      void setClasspathDependencyScopeExclude( String classpathDependencyScopeExclude );
65  
66      List<String> getAdditionalClasspathElements();
67  
68      void setAdditionalClasspathElements( List<String> additionalClasspathElements );
69  
70      File getReportsDirectory();
71  
72      void setReportsDirectory( File reportsDirectory );
73  
74      File getTestSourceDirectory();
75  
76      void setTestSourceDirectory( File testSourceDirectory );
77  
78      String getTest();
79  
80      String getTestMethod();
81  
82      void setTest( String test );
83  
84      List<String> getIncludes();
85  
86      void setIncludes( List<String> includes );
87  
88      List<String> getExcludes();
89  
90      void setExcludes( List<String> excludes );
91  
92      ArtifactRepository getLocalRepository();
93  
94      void setLocalRepository( ArtifactRepository localRepository );
95  
96      boolean isPrintSummary();
97  
98      void setPrintSummary( boolean printSummary );
99  
100     String getReportFormat();
101 
102     void setReportFormat( String reportFormat );
103 
104     boolean isUseFile();
105 
106     void setUseFile( boolean useFile );
107 
108     String getDebugForkedProcess();
109 
110     void setDebugForkedProcess( String debugForkedProcess );
111 
112     int getForkedProcessTimeoutInSeconds();
113 
114     void setForkedProcessTimeoutInSeconds( int forkedProcessTimeoutInSeconds );
115 
116     boolean isUseSystemClassLoader();
117 
118     void setUseSystemClassLoader( boolean useSystemClassLoader );
119 
120     boolean isUseManifestOnlyJar();
121 
122     void setUseManifestOnlyJar( boolean useManifestOnlyJar );
123 
124     Boolean getFailIfNoSpecifiedTests();
125 
126     void setFailIfNoSpecifiedTests( Boolean failIfNoSpecifiedTests );
127 }